diff options
author | HiZe_ <superhize@hotmail.com> | 2023-09-08 17:16:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 17:16:59 +0200 |
commit | dafbb51ceb51cd80c5d726ef345bccebc5e94b12 (patch) | |
tree | 3a823d9ce1cd97b3bad343639de985759d7e7c72 /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | dddd91d1cead43a8164425f28dffd6ea799ab22f (diff) | |
download | skyhanni-dafbb51ceb51cd80c5d726ef345bccebc5e94b12.tar.gz skyhanni-dafbb51ceb51cd80c5d726ef345bccebc5e94b12.tar.bz2 skyhanni-dafbb51ceb51cd80c5d726ef345bccebc5e94b12.zip |
Fix: PowderTracker (#446)
Co-authored-by: superhize <superhize@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt index a24eec911..ce3d4a1c1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt @@ -169,7 +169,7 @@ class PowderTracker { private fun drawDisplay() = buildList<List<Any>> { addAsSingletonList("§b§lPowder Tracker") - if (inventoryOpen) { + if (inventoryOpen){ addSelector<DisplayMode>( "§7Display Mode: ", getName = { type -> type.displayName }, @@ -179,7 +179,10 @@ class PowderTracker { saveAndUpdate() } ) + }else{ + addAsSingletonList("") } + val both = currentLog() ?: return@buildList val display = both.get(currentDisplayMode) val rewards = display.rewards @@ -238,6 +241,8 @@ class PowderTracker { val count = rewards.getOrDefault(reward, 0).addSeparators() addAsSingletonList("§b$count ${reward.displayName}") } + + } private fun calculateResourceHour(resourceInfo: ResourceInfo) { |