From 8a1591748ac661c6f61776e25592ee879bbcdd72 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 7 Oct 2024 00:52:59 +0200 Subject: removed unnecessary check --- .../skyhanni/features/fishing/tracker/SeaCreatureTracker.kt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/main/java') 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) -- cgit