Merge pull request #117 from mezz/103

Added check for bad centrifuge recipes that crash the game.
This commit is contained in:
James Mitchell committed 2014-08-17 03:05:04 -07:00
commit 3f3d742244
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) {