🐛 Check only for existence of identical chains
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 10 Feb 2024 08:37:39 +0000 (09:37 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 10 Feb 2024 08:37:39 +0000 (09:37 +0100)
src/main/java/net/pterodactylus/rhynodge/loader/ChainWatcher.java

index f0b1215..411e137 100644 (file)
@@ -171,7 +171,7 @@ public class ChainWatcher extends AbstractExecutionThreadService {
                        for (Entry<String, Chain> loadedChain : loadedChains.entrySet()) {
 
                                /* skip chains that still exist. */
-                               if (enabledChains.containsKey(loadedChain.getKey())) {
+                               if (loadedChains.containsValue(loadedChain.getValue())) {
                                        continue;
                                }