From 39b2b9099f09bb8dc7061eabc28333d35e557044 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 10 Feb 2024 09:37:39 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=90=9B=20Check=20only=20for=20existence=20?= =?utf8?q?of=20identical=20chains?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/rhynodge/loader/ChainWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4