Skip to content
Permalink
Browse files

Hopefully fixed render issue with food and enchanted items in the sam…

…e inventory.
  • Loading branch information...
Kittychanley committed Oct 7, 2015
1 parent 4a20634 commit 6daa971c0ff33f6144abb0dd5ebbacc13fac4260
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Common/com/bioxx/tfc/Render/Item/FoodItemRenderer.java
@@ -31,7 +31,10 @@ public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRe
public void renderItem(ItemRenderType type, ItemStack is, Object... data)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
GL11.glEnable(GL11.GL_DEPTH_TEST);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
if(is.getItem() instanceof IFood && is.hasTagCompound())
{
renderIcon(0, 0, is.getItem().getIconIndex(is), 16, 16);
@@ -104,7 +107,7 @@ else if(is.getItem() instanceof IFood)
renderIcon(0, 0, is.getItem().getIconIndex(is), 16, 16);
}

GL11.glDisable(GL11.GL_BLEND);
GL11.glPopAttrib();
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
}

0 comments on commit 6daa971

Please sign in to comment.
You can’t perform that action at this time.