mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Added check for bad centrifuge recipes that can crash the game.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user