From ab8176beeadad04c4bc34ab57cdf66a459a076c3 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 2 Apr 2023 17:00:28 +0200 Subject: Fixed error with composter data (red error messages with "TabListUpdateEvent") --- .../java/at/hannibal2/skyhanni/features/garden/ComposterDisplay.kt | 4 ++++ 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>() newList.addAsSingletonList("§bComposter") + for (type in DataType.values()) { + if (!data.containsKey(type)) return + } + newList.add(DataType.TIME_LEFT.addToList(data)) val list = mutableListOf() 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") } } -- cgit