Also check byproducts for null

This commit is contained in:
Raoul Van den Berge
2016-06-04 23:45:17 +02:00
parent 2b323aaa54
commit 19340968b2

View File

@@ -106,6 +106,15 @@ public class ItemPattern extends ItemBase {
}
}
ItemStack[] byproducts = getByproducts(pattern);
if (byproducts != null) {
for (ItemStack byproduct : byproducts) {
if (byproduct == null) {
return false;
}
}
}
return true;
}