Skip to content

Commit

Permalink
Fix tests and hopefully keep the older fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Seggan committed Sep 17, 2021
1 parent 6c645ef commit 46ab1af
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ public MachineRecipeType(String key, ItemStack item) {

@Override
public void register(ItemStack[] recipe, ItemStack result) {
if (recipe == null || result == null) return;
if (recipe == null) return;
for (ItemStack stack : recipe) {
if (stack == null) return;
}
callbacks.forEach(c -> c.accept(recipe, result));
recipes.put(recipe, result);
}
Expand Down

0 comments on commit 46ab1af

Please sign in to comment.