Merge pull request #465 from Necr0/patch-1

Fix Invisible Items
This commit is contained in:
WayofTime 2015-10-09 08:37:22 -04:00
commit d259783ead

View file

@ -52,7 +52,11 @@ public class RenderPedestal extends TileEntitySpecialRenderer
if (tileAltar.getStackInSlot(0) != null)
{
float scaleFactor = getGhostItemScaleFactor(tileAltar.getStackInSlot(0));
float rotationAngle = (float) (720.0 * (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
float rotationAngle;
if(FMLClientHandler.instance().getClient().gameSettings.fancyGraphics==true)
rotationAngle = (float) (720.0 * (System.currentTimeMillis() & 0x3FFFL) / 0x3FFFL);
else
rotationAngle = 0;
EntityItem ghostEntityItem = new EntityItem(tileAltar.getWorldObj());
ghostEntityItem.hoverStart = 0.0F;
ghostEntityItem.setEntityItemStack(tileAltar.getStackInSlot(0));
@ -244,4 +248,4 @@ public class RenderPedestal extends TileEntitySpecialRenderer
}
}
}
}
}