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

@@ -1,5 +1,8 @@
# Refined Storage Changelog
### 1.5.30
- Fixed crashing bug when MCMultiPart is not installed (raoulvdberge)
### 1.5.29
- Update Forge to 2577 (minimum Forge version required is now 2555 for MC 1.12.2) (raoulvdberge)
- Fixed bug where MCMP multiparts were blocking RS network connections (raoulvdberge)

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)) {