mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-28 07:55:41 +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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user