Fix non-opaque facades hiding conduits and conduit TESRs

This commit is contained in:
tterrag1098 committed 2015-04-12 23:53:18 -04:00
1 parent ad107a14fb
commit 941dc580fb
2 files changed
+3 -2

No files matched your search

@@ -83,8 +83,7 @@ public class TileConduitBundle extends TileEntityEio implements IConduitBundle {
@Override
public boolean shouldRenderInPass(int arg0) {
// TODO Can avoid the call to the TESR here
if(facadeId != null && !ConduitUtil.isFacadeHidden(this, EnderIO.proxy.getClientPlayer())) {
if(facadeId != null && facadeId.isOpaqueCube() && !ConduitUtil.isFacadeHidden(this, EnderIO.proxy.getClientPlayer())) {
return false;
}
return super.shouldRenderInPass(arg0);
@@ -177,6 +177,8 @@ public class ConduitBundleRenderer extends TileEntitySpecialRenderer implements
rb.blockAccess = origBa;
}
res = isFacadeOpaque;
}
} else {