Adjust all renderers to support break overlay

This commit is contained in:
tterrag1098 committed 2015-01-21 00:52:56 -05:00
1 parent 471f665351
commit 2c19fe16b7
30 files changed
+231 -144

No files matched your search

@@ -64,7 +64,11 @@ public class SolarPanelRenderer implements ISimpleBlockRenderingHandler {
meta = MathHelper.clamp_int(meta, 0, 1);
ctr.setEdgeTexture(EnderIO.blockSolarPanel.getBorderIcon(0, meta));
CustomCubeRenderer.instance.setOverrideTexture(IconUtil.blankTexture);
CustomCubeRenderer.instance.renderBlock(world, block, x, y, z, ctr);
if(!renderer.hasOverrideBlockTexture()) {
CustomCubeRenderer.instance.renderBlock(world, block, x, y, z, ctr);
} else {
CustomCubeRenderer.instance.renderBlock(world, block, x, y, z);
}
CustomCubeRenderer.instance.setOverrideTexture(null);
Tessellator.instance.addTranslation(0, -0.0001f, 0);
return true;