From: David ‘Bombe’ Roden Date: Sat, 10 Feb 2024 08:37:39 +0000 (+0100) Subject: 🐛 Check only for existence of identical chains X-Git-Tag: v2~35 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=39b2b9099f09bb8dc7061eabc28333d35e557044;p=rhynodge.git 🐛 Check only for existence of identical chains --- diff --git a/src/main/java/net/pterodactylus/rhynodge/loader/ChainWatcher.java b/src/main/java/net/pterodactylus/rhynodge/loader/ChainWatcher.java index f0b1215..411e137 100644 --- a/src/main/java/net/pterodactylus/rhynodge/loader/ChainWatcher.java +++ b/src/main/java/net/pterodactylus/rhynodge/loader/ChainWatcher.java @@ -171,7 +171,7 @@ public class ChainWatcher extends AbstractExecutionThreadService { for (Entry loadedChain : loadedChains.entrySet()) { /* skip chains that still exist. */ - if (enabledChains.containsKey(loadedChain.getKey())) { + if (loadedChains.containsValue(loadedChain.getValue())) { continue; }