Added check for bad centrifuge recipes that can crash the game.

This commit is contained in:
James Mitchell committed 2014-08-17 02:56:53 -07:00
1 parent 0c6491c80b
commit bf1d01752c
1 file changed
+5
@@ -58,6 +58,11 @@ public class MachineCentrifuge extends TilePowered implements ISidedInventory, I
this.timePerItem = timePerItem;
this.resource = resource;
this.products = products;
for (ItemStack item : products.keySet()) {
if (item == null)
throw new IllegalArgumentException("Tried to register a null product of " + resource);
}
}
public boolean matches(ItemStack res) {