From 1ccfb31b94a4b0809cf4b77925bce9861e5aecc6 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 15 Jan 2023 08:00:31 +0100 Subject: Smarter CollectionCounter message, removed debug --- .../at/hannibal2/skyhanni/features/misc/CollectionCounter.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt index e36b5001e..8ddf0eba7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt @@ -62,7 +62,11 @@ class CollectionCounter { val apiName = data.apiName if (!apiCollectionData.contains(apiName)) { - LorenzUtils.chat("§c[SkyHanni] Item $name is not in collection data!") + if (apiCollectionData.isEmpty()) { + LorenzUtils.chat("§c[SkyHanni] Collection data not loaded! (API down?)") + } else { + LorenzUtils.chat("§c[SkyHanni] Item $name is not in collection data!") + } return } @@ -133,8 +137,8 @@ class CollectionCounter { if (diff != 0) { if (diff > 0) { gainItems(diff) - } else { - LorenzUtils.debug("Collection counter! Negative collection change: $diff") +// } else { +// LorenzUtils.debug("Collection counter! Negative collection change: $diff") } } -- cgit