diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt index cf6d0e3e1..0d349e9fb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt @@ -66,10 +66,10 @@ object VerminTracker { var count: MutableMap<VerminType, Int> = mutableMapOf() } - enum class VerminType(val vermin: String, val pattern: Pattern) { - SILVERFISH("§aSilverfish", silverfishPattern), - SPIDER("§aSpiders", spiderPattern), - FLY("§aFlies", flyPattern), + enum class VerminType(val order: Int, val vermin: String, val pattern: Pattern) { + FLY(1, "§aFlies", flyPattern), + SPIDER(2, "§aSpiders", spiderPattern), + SILVERFISH(3, "§aSilverfish", silverfishPattern), } @SubscribeEvent @@ -152,7 +152,7 @@ object VerminTracker { private fun drawDisplay(data: Data): List<List<Any>> = buildList { addAsSingletonList("§7Vermin Tracker:") - data.count.entries.sortedByDescending { it.value }.forEach { (vermin, amount) -> + data.count.entries.sortedBy { it.key.order }.forEach { (vermin, amount) -> val verminName = vermin.vermin addAsSingletonList(" §7- §e${amount.addSeparators()} $verminName") } |