Fixed rare bug when server crashes on startup due to network node not existing, fixes #1478

This commit is contained in:
raoulvdberge
2017-10-04 10:15:19 +02:00
parent 7a00a1f903
commit 9dbd752b8c

View File

@@ -66,7 +66,7 @@ public abstract class BlockNode extends BlockBase {
manager.removeNode(pos);
manager.markForSaving();
if (node.getNetwork() != null) {
if (node != null && node.getNetwork() != null) {
node.getNetwork().getNodeGraph().rebuild();
}
}