mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-28 15:56:04 +00:00
Fixing render issue with jar.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user