Fixing render issue with jar.

This commit is contained in:
MysteriousAges committed 2013-05-15 10:41:48 -07:00
1 parent 5f9b122d77
commit 66c1a89c32
2 files changed
+10 -3

No files matched your search

@@ -27,12 +27,13 @@ public class ModelEffectJar
{
this.effectJarObj.renderPart("jarLid");
GL11.glDepthMask(false);
GL11.glPushAttrib(GL11.GL_ENABLE_BIT);
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
this.effectJarObj.renderPart("jarBase");
GL11.glDisable(GL11.GL_BLEND);
GL11.glDepthMask(true);
GL11.glPopAttrib();
}
}
@@ -38,6 +38,12 @@ public class TileEntityEffectJar extends TileEntity implements IInventory
this.ownerName = player.username;
}
@Override
public boolean shouldRenderInPass(int pass)
{
return pass == 1;
}
public String getOwner()
{
return this.ownerName;