Added code to short circut rendering of conduits when hidden behind facades.

This commit is contained in:
CrazyPants committed 2014-08-29 14:38:41 +08:00
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