mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 04:09:43 +00:00
Added code to short circut rendering of conduits when hidden behind facades.
This commit is contained in:
1 parent
1743f8f94d
commit
929ef561d7
1 file changed
+9
@@ -72,6 +72,15 @@ public class TileConduitBundle extends TileEntityEio implements IConduitBundle {
|
||||
public void dirty() {
|
||||
conduitsDirty = true;
|
||||
collidablesDirty = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRenderInPass(int arg0) {
|
||||
// TODO Can avoid the call to the TESR here
|
||||
if(facadeId != null && !ConduitUtil.isFacadeHidden(this, EnderIO.proxy.getClientPlayer())) {
|
||||
return false;
|
||||
}
|
||||
return super.shouldRenderInPass(arg0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user