aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-10-07 00:52:59 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-10-07 00:52:59 +0200
commit8a1591748ac661c6f61776e25592ee879bbcdd72 (patch)
tree91f3af88c9a55b4f565ea191953ad68d81cf3ca4 /src
parentdc2ea3ff0b449489ee32bf066b9c8854791f5d86 (diff)
downloadskyhanni-8a1591748ac661c6f61776e25592ee879bbcdd72.tar.gz
skyhanni-8a1591748ac661c6f61776e25592ee879bbcdd72.tar.bz2
skyhanni-8a1591748ac661c6f61776e25592ee879bbcdd72.zip
removed unnecessary check
Diffstat (limited to 'src')
-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)