mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-17 02:55:06 +00:00
Adjust all renderers to support break overlay
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user