Collect JEI ingredients to list first to avoid concurrency issues
This commit is contained in:
parent
d78ae2c754
commit
b582e8911a
|
|
@ -80,7 +80,7 @@ public class JEIBackedSearchTree extends DummySearchTree<ItemStack> {
|
||||||
ModernFix.LOGGER.error("Error searching", e);
|
ModernFix.LOGGER.error("Error searching", e);
|
||||||
ingredients = Stream.empty();
|
ingredients = Stream.empty();
|
||||||
}
|
}
|
||||||
ingredients.forEach(ingredient -> {
|
ingredients.toList().forEach(ingredient -> {
|
||||||
if(ingredient.getIngredient() instanceof ItemStack) {
|
if(ingredient.getIngredient() instanceof ItemStack) {
|
||||||
listCache.add((ItemStack)ingredient.getIngredient());
|
listCache.add((ItemStack)ingredient.getIngredient());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user