RS 1.6.11: Fixed blocks neighboring a controller breaking when returning from a dimension in a unchunkloaded area. Fixes #2101. Replaces a fix for #2069.

This commit is contained in:
raoulvdberge
2018-11-24 21:37:03 +01:00
parent d2d7cd6944
commit 1005843d86
3 changed files with 5 additions and 3 deletions

View File

@@ -160,8 +160,7 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
INetworkNodeProxy otherNodeProxy = NETWORK_NODE_PROXY_CAPABILITY.cast(tile.getCapability(NETWORK_NODE_PROXY_CAPABILITY, side));
INetworkNode otherNode = otherNodeProxy.getNode();
// This will work for regular nodes and for controllers too since controllers are internally a INetworkNode (and return themselves in INetworkNode#getNetwork).
if (otherNode.getNetwork() != null && otherNode.getNetwork() != network) {
if (otherNode.getNetwork() != null && !otherNode.getNetwork().equals(network)) {
if (action == Action.PERFORM) {
dropConflictingBlock(world, tile.getPos());
}