Fixed #1238 - "Controller requires replacing after power loss"

This commit is contained in:
raoulvdberge
2017-05-24 20:12:32 +02:00
parent 76b31c6710
commit 4c92c87c7c
3 changed files with 3 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
### 1.4.8
- Fixed missing config categories in ingame config (raoulvdberge)
- Fixed Controller not working anymore after changing redstone setting (raoulvdberge)
### 1.4.7
- Fixed bug where Portable Grid would dupe in inventory (raoulvdberge)

View File

@@ -118,6 +118,7 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
List<INetworkNode> oldNodes = new ArrayList<>(nodes);
nodes.clear();
nodePositions.clear();
for (INetworkNode node : oldNodes) {
if (node.getNetwork() == controller) {

View File

@@ -107,11 +107,7 @@ public class TileController extends TileBase implements ITickable, INetwork, IRe
continue;
}
ClientNode clientNode = new ClientNode(
stack,
1,
node.getEnergyUsage()
);
ClientNode clientNode = new ClientNode(stack, 1, node.getEnergyUsage());
if (nodes.contains(clientNode)) {
ClientNode other = nodes.get(nodes.indexOf(clientNode));