ignore empty stacks in StackListItemOredicted#initOreDict

This commit is contained in:
way2muchnoise
2016-12-14 20:17:24 +01:00
parent 49d7341cd8
commit 59a318de75

View File

@@ -27,11 +27,13 @@ public class StackListItemOredicted implements IStackList<ItemStack> {
private void initOreDict() { private void initOreDict() {
for (ItemStack stack : underlyingList.getStacks()) { for (ItemStack stack : underlyingList.getStacks()) {
if (!stack.isEmpty()) {
for (int id : OreDictionary.getOreIDs(stack)) { for (int id : OreDictionary.getOreIDs(stack)) {
stacks.put(id, stack); stacks.put(id, stack);
} }
} }
} }
}
@Override @Override
public void add(@Nonnull ItemStack stack, int size) { public void add(@Nonnull ItemStack stack, int size) {