Fixed piston rotation
This commit is contained in:
parent
863f3b8648
commit
38a7a12fc5
|
@ -33,10 +33,14 @@ public class RenderMechanicalPiston extends TileEntitySpecialRenderer
|
||||||
|
|
||||||
if (tile.worldObj != null)
|
if (tile.worldObj != null)
|
||||||
{
|
{
|
||||||
if (tile.getDirection() != ForgeDirection.UP && tile.getDirection() != ForgeDirection.DOWN)
|
if (tile.getDirection() == ForgeDirection.NORTH || tile.getDirection() == ForgeDirection.SOUTH)
|
||||||
|
{
|
||||||
RenderUtility.rotateBlockBasedOnDirection(tile.getDirection().getOpposite());
|
RenderUtility.rotateBlockBasedOnDirection(tile.getDirection().getOpposite());
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
RenderUtility.rotateBlockBasedOnDirection(tile.getDirection());
|
RenderUtility.rotateBlockBasedOnDirection(tile.getDirection());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderUtility.bind(TEXTURE);
|
RenderUtility.bind(TEXTURE);
|
||||||
|
|
Loading…
Reference in a new issue