Fixed crashing bug when MCMultiPart is not installed, fixes #1587

This commit is contained in:
raoulvdberge
2017-12-24 23:09:50 +01:00
parent a78d8693df
commit d75a47058c
2 changed files with 4 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ public class BlockCable extends BlockNode {
return false;
}
TileEntity otherTile = RSMCMPAddon.unwrapTile(world, pos.offset(direction));
TileEntity otherTile = world.getTileEntity(pos.offset(direction));
EnumFacing otherTileSide = direction.getOpposite();
if (otherTile != null && otherTile.hasCapability(CapabilityNetworkNodeProxy.NETWORK_NODE_PROXY_CAPABILITY, otherTileSide)) {