Fixed bug where storages that are removed remain visible

This commit is contained in:
raoulvdberge
2017-06-05 00:01:05 +02:00
parent 81ee28955a
commit f505a1084c
2 changed files with 3 additions and 2 deletions

View File

@@ -53,14 +53,14 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
currentNodeToCheck.walkNeighborhood(operator);
}
this.nodes = operator.newNodes;
for (INetworkNode node : operator.previousNodes) {
node.onDisconnected(controller);
operator.changed = true;
}
this.nodes = operator.newNodes;
if (operator.changed) {
controller.getDataManager().sendParameterToWatchers(TileController.NODES);
}