Reset all rotations when rendering.
This commit is contained in:
parent
09cee7b9f5
commit
bceff8e902
3 changed files with 9 additions and 0 deletions
|
@ -92,6 +92,8 @@ public class BusRenderer implements IItemRenderer
|
|||
BusRenderHelper.instance.ay = ForgeDirection.UP;
|
||||
BusRenderHelper.instance.az = ForgeDirection.SOUTH;
|
||||
|
||||
renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;
|
||||
|
||||
if ( item.getItem() instanceof IFacadeItem )
|
||||
{
|
||||
IFacadeItem fi = (IFacadeItem) item.getItem();
|
||||
|
@ -113,6 +115,8 @@ public class BusRenderer implements IItemRenderer
|
|||
ip.renderInventory( BusRenderHelper.instance, renderer );
|
||||
}
|
||||
|
||||
renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;
|
||||
|
||||
GL11.glPopAttrib();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ public class ItemRenderer implements IItemRenderer
|
|||
GL11.glTranslatef( -0.5f, -0.5f, -0.5f );
|
||||
if ( type == ItemRenderType.INVENTORY )
|
||||
GL11.glTranslatef( 0.0f, -0.1f, 0.0f );
|
||||
|
||||
WorldRender.instance.renderItemBlock( item );
|
||||
|
||||
GL11.glPopAttrib();
|
||||
|
|
|
@ -60,7 +60,11 @@ public class WorldRender implements ISimpleBlockRenderingHandler
|
|||
{
|
||||
AEBaseBlock block = (AEBaseBlock) Block.getBlockFromItem( item.getItem() );
|
||||
renderer.setRenderBoundsFromBlock( block );
|
||||
|
||||
renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;
|
||||
getRender( block ).renderInventory( block, item, renderer );
|
||||
renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;
|
||||
|
||||
}
|
||||
|
||||
private BaseBlockRender getRender(AEBaseBlock block)
|
||||
|
|
Loading…
Reference in a new issue