aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-10 10:44:14 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-10 10:44:14 +0200
commit90aa32ff22cbf7a230f27c8d8d4c36db639f569f (patch)
treeb039803bfa6ec9fb80baf264385f99ed4d0cdfef /src/main/java/at
parent6dd90af204bbb5859529b362909130e6c9767929 (diff)
downloadskyhanni-90aa32ff22cbf7a230f27c8d8d4c36db639f569f.tar.gz
skyhanni-90aa32ff22cbf7a230f27c8d8d4c36db639f569f.tar.bz2
skyhanni-90aa32ff22cbf7a230f27c8d8d4c36db639f569f.zip
Fixed potential ConcurrentModificationException again
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt2
1 files changed, 1 insertions, 1 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 fcb258d21..73de0c85e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/SackDisplay.kt
@@ -51,7 +51,7 @@ object SackDisplay {
else -> saclItems.sortedByDescending { it.second.stored.formatNumber() }
}.toMap().toMutableMap()
- sortedPairs.forEach { (k, v) ->
+ sortedPairs.toList().forEach { (k, v) ->
if (v.stored == "0" && !config.showEmpty) {
sortedPairs.remove(k)
}