From b7366b4b955299ea80efee80a0a157e8963ea0a4 Mon Sep 17 00:00:00 2001 From: Austin L Mayes Date: Mon, 1 Feb 2021 01:54:41 -0600 Subject: [PATCH] Actually compare countdown classes during running checks Signed-off-by: Austin L Mayes --- .../java/net/avicus/compendium/countdown/CountdownManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/net/avicus/compendium/countdown/CountdownManager.java b/Bukkit/src/main/java/net/avicus/compendium/countdown/CountdownManager.java index 86b826b..5626c0e 100644 --- a/Bukkit/src/main/java/net/avicus/compendium/countdown/CountdownManager.java +++ b/Bukkit/src/main/java/net/avicus/compendium/countdown/CountdownManager.java @@ -132,7 +132,7 @@ public void cancelAll() { * @return if a countdown of the specified class is running */ public boolean isRunning(Class clazz) { - return this.countdowns.values().stream().anyMatch(countdown -> clazz.isInstance(clazz)); + return this.countdowns.keySet().stream().anyMatch(clazz::isInstance); } /**