diff options
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java | 1 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/powdertracker/PowderTracker.kt | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java index d9cd5c2b8..945468fcb 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java @@ -838,6 +838,7 @@ public class MiscConfig { @ConfigEditorDraggableList( exampleText = { "§b§lPowder Tracker", + "§7Display Mode: §a[Total] §e[This Session]", "§d852 Total chests Picked §7(950/h)", "§bx2 Powder: §aActive!", "§b250,420 §aMithril Powder §7(350,000/h)", 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) { |