#292 NPE by removing facade-mod

This commit is contained in:
CrazyPants committed 2013-11-19 14:14:04 +08:00
1 parent f49e3298fe
commit fd8bfcdb90
1 file changed
+1 -1
@@ -78,7 +78,7 @@ public class BlockConduitBundle extends Block implements ITileEntityProvider, IC
TileConduitBundle cb = (TileConduitBundle)
world.getBlockTileEntity(target.blockX, target.blockY, target.blockZ);
if(ConduitUtil.isSolidFacadeRendered(cb, Minecraft.getMinecraft().thePlayer)) {
if(cb.getFacadeId() > 0) {
if(cb.getFacadeId() > 0 && Block.blocksList[cb.getFacadeId()] != null) {
tex = Block.blocksList[cb.getFacadeId()].getIcon(target.sideHit,
cb.getFacadeMetadata());
}