diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-10 10:44:14 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-10 10:44:14 +0200 |
commit | 90aa32ff22cbf7a230f27c8d8d4c36db639f569f (patch) | |
tree | b039803bfa6ec9fb80baf264385f99ed4d0cdfef /src/main/java/at | |
parent | 6dd90af204bbb5859529b362909130e6c9767929 (diff) | |
download | skyhanni-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.kt | 2 |
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) } |