diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-15 08:00:31 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-15 08:00:31 +0100 |
commit | 1ccfb31b94a4b0809cf4b77925bce9861e5aecc6 (patch) | |
tree | bd5ac9da984c28400650529dbbfbe5fe0ef3fce9 /src/main/java/at/hannibal2/skyhanni/features | |
parent | 34bd66af164d7a3ca07fd90bc3f04a5e4aaec386 (diff) | |
download | skyhanni-1ccfb31b94a4b0809cf4b77925bce9861e5aecc6.tar.gz skyhanni-1ccfb31b94a4b0809cf4b77925bce9861e5aecc6.tar.bz2 skyhanni-1ccfb31b94a4b0809cf4b77925bce9861e5aecc6.zip |
Smarter CollectionCounter message, removed debug
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/CollectionCounter.kt | 10 |
1 files changed, 7 insertions, 3 deletions
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") } } |