Skip to content

Commit b7366b4

Browse files
committed
Actually compare countdown classes during running checks
Signed-off-by: Austin L Mayes <me@austinlm.me>
1 parent 21187ed commit b7366b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bukkit/src/main/java/net/avicus/compendium/countdown/CountdownManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void cancelAll() {
132132
* @return if a countdown of the specified class is running
133133
*/
134134
public boolean isRunning(Class<? extends Countdown> clazz) {
135-
return this.countdowns.values().stream().anyMatch(countdown -> clazz.isInstance(clazz));
135+
return this.countdowns.keySet().stream().anyMatch(clazz::isInstance);
136136
}
137137

138138
/**

0 commit comments

Comments
 (0)