diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-02 17:00:28 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-02 17:00:28 +0200 |
commit | ab8176beeadad04c4bc34ab57cdf66a459a076c3 (patch) | |
tree | 963de55480ffca5b70f7f3beb0e98d37e1a2e18b /src/main/java | |
parent | 6b1e6fb4ab1b9bc1667015f449a9891315e3e4d4 (diff) | |
download | skyhanni-ab8176beeadad04c4bc34ab57cdf66a459a076c3.tar.gz skyhanni-ab8176beeadad04c4bc34ab57cdf66a459a076c3.tar.bz2 skyhanni-ab8176beeadad04c4bc34ab57cdf66a459a076c3.zip |
Fixed error with composter data (red error messages with "TabListUpdateEvent")
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/ComposterDisplay.kt | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/ComposterDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/ComposterDisplay.kt index 57cf15aa9..7f37c6867 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/ComposterDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/ComposterDisplay.kt @@ -56,6 +56,10 @@ class ComposterDisplay { val newList = mutableListOf<List<Any>>() newList.addAsSingletonList("§bComposter") + for (type in DataType.values()) { + if (!data.containsKey(type)) return + } + newList.add(DataType.TIME_LEFT.addToList(data)) val list = mutableListOf<Any>() diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt index 921229e05..eb0aa48dd 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt @@ -51,8 +51,6 @@ object LorenzUtils { if (internalChat(DEBUG_PREFIX + message)) { consoleLog("[Debug] $message") } - } else { - consoleLog("[Debug] $message") } } |