Fixed #184 - Items on engineering table not rendering in fast graphics
This commit is contained in:
parent
38fe2fbe65
commit
0178cb0b73
1 changed files with 12 additions and 6 deletions
|
@ -177,17 +177,23 @@ public abstract class RenderItemOverlayTile extends TileEntitySpecialRenderer
|
||||||
{
|
{
|
||||||
if (itemStack != null)
|
if (itemStack != null)
|
||||||
{
|
{
|
||||||
EntityItem entityitem = new EntityItem(world, 0.0D, 0.0D, 0.0D, itemStack.copy());
|
EntityItem entityItem = new EntityItem(world, 0.0D, 0.0D, 0.0D, itemStack.copy());
|
||||||
entityitem.getEntityItem().stackSize = 1;
|
entityItem.getEntityItem().stackSize = 1;
|
||||||
entityitem.hoverStart = 0.0F;
|
entityItem.hoverStart = 0.0F;
|
||||||
GL11.glPushMatrix();
|
GL11.glPushMatrix();
|
||||||
GL11.glTranslated(-0.453125F * dir.offsetX + position.x, position.y, -0.453125F * dir.offsetZ + position.z);
|
GL11.glTranslated(-0.453125F * dir.offsetX + position.x, position.y, -0.453125F * dir.offsetZ + position.z);
|
||||||
GL11.glRotatef(180.0F + rotationYaw, 0.0F, 1.0F, 0.0F);
|
GL11.glRotatef(180.0F + rotationYaw, 0.0F, 1.0F, 0.0F);
|
||||||
GL11.glRotatef(90 * angle, 1, 0, 0);
|
GL11.glRotatef(90 * angle, 1, 0, 0);
|
||||||
|
|
||||||
RenderItem.renderInFrame = true;
|
RenderItem renderItem = ((RenderItem) RenderManager.instance.getEntityClassRenderObject(EntityItem.class));
|
||||||
RenderManager.instance.renderEntityWithPosYaw(entityitem, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F);
|
|
||||||
RenderItem.renderInFrame = false;
|
if (entityItem != null)
|
||||||
|
{
|
||||||
|
boolean fancyGraphics = RenderManager.instance.options.fancyGraphics;
|
||||||
|
RenderManager.instance.options.fancyGraphics = true;
|
||||||
|
renderItem.doRenderItem(entityItem, 0, 0, 0, 0, 0);
|
||||||
|
RenderManager.instance.options.fancyGraphics = fancyGraphics;
|
||||||
|
}
|
||||||
|
|
||||||
GL11.glPopMatrix();
|
GL11.glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue