From 3e3ecdc6098e6137574afb925c6fd67551c5bf5c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 20 Jan 2024 23:32:08 +0100 Subject: Fixed a rare bug that leaves ghost burrows around. --- src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedSet.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedSet.kt') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedSet.kt b/src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedSet.kt index 97caf70ad..e64c55213 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedSet.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/TimeLimitedSet.kt @@ -11,4 +11,6 @@ class TimeLimitedSet(expireAfterWrite: Duration) { fun contains(element: T): Boolean = cache.containsKey(element) fun clear() = cache.clear() + + fun toSet(): Set = cache.keys().toSet() } -- cgit