Add a bunch of dirty, dirty tesr item hook items. Also fix fabulous mana pool leaking its fabulousness

This commit is contained in:
Vincent Lee committed 2016-01-07 08:52:58 -06:00
1 parent 92aaa9f70a
commit 12dfecb8ac
16 files changed
+68 -74

No files matched your search

@@ -42,12 +42,12 @@ public class RenderTileBellows extends TileEntitySpecialRenderer {
GlStateManager.translate(d0, d1, d2);
Minecraft.getMinecraft().renderEngine.bindTexture(texture);
int meta = bellows.getWorld() != null ? bellows.getBlockMetadata() : 0;
int meta = bellows != null && bellows.getWorld() != null ? bellows.getBlockMetadata() : 0;
GlStateManager.translate(0.5F, 1.5F, 0.5F);
GlStateManager.scale(1F, -1F, -1F);
GlStateManager.rotate(ROTATIONS[Math.max(Math.min(ROTATIONS.length, meta - 2), 0)], 0F, 1F, 0F);
model.render(Math.max(0.1F, 1F - (bellows.movePos + bellows.moving * f + 0.1F)));
model.render(Math.max(0.1F, 1F - (bellows == null ? 0 : (bellows.movePos + bellows.moving * f + 0.1F))));
GlStateManager.color(1F, 1F, 1F);
GlStateManager.scale(1F, -1F, -1F);
GlStateManager.enableRescaleNormal();