Proper derefs

This commit is contained in:
cyberpwn
2021-09-14 12:17:39 -04:00
parent 18efedf7c5
commit ad323ebf2b
7 changed files with 19 additions and 0 deletions

View File

@@ -136,4 +136,11 @@ public class FolderWatcher extends FileWatcher {
public KList<File> getDeleted() {
return deleted;
}
public void clear() {
watchers.clear();
changed.clear();
deleted.clear();
created.clear();
}
}

View File

@@ -89,4 +89,8 @@ public class ReactiveFolder {
return fw.checkModified();
}
public void clear() {
fw.clear();
}
}

View File

@@ -358,6 +358,7 @@ public class Mantle {
Iris.reportError(e);
}
loadedRegions.clear();
Iris.debug("The Mantle has Closed " + C.DARK_AQUA + dataFolder.getAbsolutePath());
}