mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-19 11:59:17 +00:00
Prevent ConcurrentModificationException while searching for fuels in ItemList (#926)
This commit is contained in:
1 parent
ccbf94790a
commit
d5f25a4be8
2 files changed
+7
-4
No files matched your search
@@ -251,7 +251,6 @@ public class ItemList {
|
||||
|
||||
private void updateOrdering(List<ItemStack> items) {
|
||||
final Map<ItemStack, Integer> newOrdering = new HashMap<>();
|
||||
ItemSorter.sort(items);
|
||||
|
||||
if (!CollapsibleItems.isEmpty()) {
|
||||
final HashMap<Integer, Integer> groups = new HashMap<>();
|
||||
@@ -424,6 +423,9 @@ public class ItemList {
|
||||
}
|
||||
}
|
||||
|
||||
if (interrupted()) return;
|
||||
ItemSorter.sort(items);
|
||||
|
||||
if (interrupted()) return;
|
||||
ItemList.items = items;
|
||||
ItemList.itemMap = itemMap;
|
||||
|
||||
Reference in new issue
Block a user