mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Fix corner case where machine overlays would not render
This commit is contained in:
1 parent
f7b3b1442f
commit
5b721f5aeb
2 files changed
+2
-1
No files matched your search
@@ -31,7 +31,7 @@ public class AbstractMachineRenderer implements ISimpleBlockRenderingHandler, II
|
||||
@Override
|
||||
public void renderFace(CustomRenderBlocks rb, ForgeDirection face, Block par1Block, double x, double y, double z, IIcon texture, List<Vertex> refVertices,
|
||||
boolean translateToXyz) {
|
||||
|
||||
|
||||
ccr.getCustomRenderBlocks().doDefaultRenderFace(face, par1Block, x, y, z, texture);
|
||||
super.renderFace(rb, face, par1Block, x, y, z, texture, refVertices, translateToXyz);
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ public class OverlayRenderer implements IRenderFace {
|
||||
IoMode mode = te.getIoMode(face);
|
||||
IIcon tex = ((AbstractMachineBlock<AbstractMachineEntity>) par1Block).getOverlayIconForMode(te, face, mode);
|
||||
if(tex != null) {
|
||||
ccr.getCustomRenderBlocks().setRenderBoundsFromBlock(par1Block);
|
||||
ccr.getCustomRenderBlocks().doDefaultRenderFace(face, par1Block, x, y, z, tex);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user