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,8 +27,10 @@ public class StackListItemOredicted implements IStackList<ItemStack> {
private void initOreDict() {
for (ItemStack stack : underlyingList.getStacks()) {
for (int id : OreDictionary.getOreIDs(stack)) {
stacks.put(id, stack);
if (!stack.isEmpty()) {
for (int id : OreDictionary.getOreIDs(stack)) {
stacks.put(id, stack);
}
}
}
}