From d75a47058cddf63fb9dfe83060ce9c1c373bdbc3 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Sun, 24 Dec 2017 23:09:50 +0100 Subject: [PATCH] Fixed crashing bug when MCMultiPart is not installed, fixes #1587 --- CHANGELOG.md | 3 +++ .../java/com/raoulvdberge/refinedstorage/block/BlockCable.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8008ad3a4..390be6e84 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/main/java/com/raoulvdberge/refinedstorage/block/BlockCable.java b/src/main/java/com/raoulvdberge/refinedstorage/block/BlockCable.java index 46cce3aa4..d637a16b6 100755 --- a/src/main/java/com/raoulvdberge/refinedstorage/block/BlockCable.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/block/BlockCable.java @@ -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)) {