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

@@ -85,11 +85,13 @@ public class AbstractMachineRenderer implements ISimpleBlockRenderingHandler, II
if (te instanceof IPaintableTileEntity && ((IPaintableTileEntity) te).getSourceBlock() != null) {
ccr.setOverrideTexture(IconUtil.blankTexture);
ccr.renderBlock(world, block, x, y, z, overlayRenderer);
ccr.setOverrideTexture(null);
ccr.setOverrideTexture(renderer.overrideBlockTexture);
paintedRenderer.renderWorldBlock(world, x, y, z, block, modelId, renderer);
} else {
ccr.setOverrideTexture(renderer.overrideBlockTexture);
ccr.renderBlock(world, block, x, y, z, overlayRenderer);
}
ccr.setOverrideTexture(null);
return true;
}