aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-10 10:46:04 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-10 10:46:04 +0200
commitafc566a5f2400126c2a72642e303f8790979bebd (patch)
tree2ab992d75591b83af6ad8ce93f2d40e53f74355c /src/main/java/at
parent90aa32ff22cbf7a230f27c8d8d4c36db639f569f (diff)
downloadskyhanni-afc566a5f2400126c2a72642e303f8790979bebd.tar.gz
skyhanni-afc566a5f2400126c2a72642e303f8790979bebd.tar.bz2
skyhanni-afc566a5f2400126c2a72642e303f8790979bebd.zip
fixed typo
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt
index 73de0c85e..757d9e741 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt
@@ -41,14 +41,14 @@ object SackDisplay {
var rendered = 0
SackAPI.getSacksData(savingSacks)
- val saclItems = SackAPI.sackItem.toList()
- if (saclItems.isNotEmpty()) {
+ val sackItems = SackAPI.sackItem.toList()
+ if (sackItems.isNotEmpty()) {
val sortedPairs: MutableMap<String, SackAPI.SackOtherItem> = when (config.sortingType) {
- 0 -> saclItems.sortedByDescending { it.second.stored.formatNumber() }
- 1 -> saclItems.sortedBy { it.second.stored.formatNumber() }
- 2 -> saclItems.sortedByDescending { it.second.price }
- 3 -> saclItems.sortedBy { it.second.price }
- else -> saclItems.sortedByDescending { it.second.stored.formatNumber() }
+ 0 -> sackItems.sortedByDescending { it.second.stored.formatNumber() }
+ 1 -> sackItems.sortedBy { it.second.stored.formatNumber() }
+ 2 -> sackItems.sortedByDescending { it.second.price }
+ 3 -> sackItems.sortedBy { it.second.price }
+ else -> sackItems.sortedByDescending { it.second.stored.formatNumber() }
}.toMap().toMutableMap()
sortedPairs.toList().forEach { (k, v) ->