Fixed rare bug when server crashes on startup due to network node not existing, fixes #1478
This commit is contained in:
		@@ -66,7 +66,7 @@ public abstract class BlockNode extends BlockBase {
 | 
				
			|||||||
        manager.removeNode(pos);
 | 
					        manager.removeNode(pos);
 | 
				
			||||||
        manager.markForSaving();
 | 
					        manager.markForSaving();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (node.getNetwork() != null) {
 | 
					        if (node != null && node.getNetwork() != null) {
 | 
				
			||||||
            node.getNetwork().getNodeGraph().rebuild();
 | 
					            node.getNetwork().getNodeGraph().rebuild();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user