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