diff --git a/src/main/java/org/cyclops/integratedscripting/core/network/ScriptingData.java b/src/main/java/org/cyclops/integratedscripting/core/network/ScriptingData.java index 13a98ddd..e474a872 100644 --- a/src/main/java/org/cyclops/integratedscripting/core/network/ScriptingData.java +++ b/src/main/java/org/cyclops/integratedscripting/core/network/ScriptingData.java @@ -78,7 +78,9 @@ public void tick() { public void close() { try { - this.watchService.close(); + if (this.watchService != null) { + this.watchService.close(); + } } catch (IOException e) { e.printStackTrace(); }