aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt
index ca8a73ce9..5ba50c2b7 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt
@@ -79,16 +79,8 @@ object SeaCreatureTracker {
val realAmount = data.amount.filter { filter(it.key) }
val total = realAmount.sumAllValues()
- for ((name, amount) in realAmount.entries.sortedByDescending { it.value }) {
- val displayName = SeaCreatureManager.allFishingMobs[name]?.displayName ?: run {
- ErrorManager.logErrorStateWithData(
- "Sea Creature Tracker can not display a name correctly",
- "Could not find sea creature by name",
- "SeaCreatureManager.allFishingMobs.keys" to SeaCreatureManager.allFishingMobs.keys,
- "name" to name
- )
- name
- }
+ for ((displayName, amount) in realAmount.entries.sortedByDescending { it.value }) {
+
val percentageSuffix = if (config.showPercentage.get()) {
val percentage = LorenzUtils.formatPercentage(amount.toDouble() / total)