Fixed mech piston render rotation issue

This commit is contained in:
Robert S 2014-09-09 21:29:00 -04:00
parent e0185f5ab5
commit 2a29830a93

View file

@ -33,7 +33,7 @@ public class RenderMechanicalPiston extends TileEntitySpecialRenderer
if (tile.getWorldObj() != null)
{
if (tile.getDirection() != ForgeDirection.UP && tile.getDirection() != ForgeDirection.DOWN)
if (tile.getDirection() == ForgeDirection.NORTH || tile.getDirection() == ForgeDirection.SOUTH)
RenderUtility.rotateBlockBasedOnDirection(tile.getDirection().getOpposite());
else
RenderUtility.rotateBlockBasedOnDirection(tile.getDirection());