ignore empty stacks in StackListItemOredicted#initOreDict
This commit is contained in:
@@ -27,8 +27,10 @@ public class StackListItemOredicted implements IStackList<ItemStack> {
|
|||||||
|
|
||||||
private void initOreDict() {
|
private void initOreDict() {
|
||||||
for (ItemStack stack : underlyingList.getStacks()) {
|
for (ItemStack stack : underlyingList.getStacks()) {
|
||||||
for (int id : OreDictionary.getOreIDs(stack)) {
|
if (!stack.isEmpty()) {
|
||||||
stacks.put(id, stack);
|
for (int id : OreDictionary.getOreIDs(stack)) {
|
||||||
|
stacks.put(id, stack);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user