diff --git a/Plan/common/src/main/java/com/djrapitops/plan/utilities/file/FileWatcher.java b/Plan/common/src/main/java/com/djrapitops/plan/utilities/file/FileWatcher.java index a1bef60ae..53eeced16 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/utilities/file/FileWatcher.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/utilities/file/FileWatcher.java @@ -116,7 +116,7 @@ public class FileWatcher extends Thread { } private void actOnModification(Path modifiedFile) { - for (WatchedFile watchedFile : watchedFiles) { + for (WatchedFile watchedFile : new HashSet<>(watchedFiles)) { watchedFile.modified(modifiedFile); } }