diff --git a/src/main/java/io/github/sefiraat/networks/listeners/BlockListener.java b/src/main/java/io/github/sefiraat/networks/listeners/BlockListener.java index 91975992..bc481742 100644 --- a/src/main/java/io/github/sefiraat/networks/listeners/BlockListener.java +++ b/src/main/java/io/github/sefiraat/networks/listeners/BlockListener.java @@ -25,6 +25,7 @@ public void onBlockPlace(BlockPlaceEvent e) { private void removeNetwork(Location location) { NodeDefinition definition = NetworkStorage.getAllNetworkObjects().get(location); if (definition == null) return; + if (definition.getNode() == null) return; NetworkStorage.removeNode(location); if (definition.getNode().getNodeType() == NodeType.CONTROLLER) {