Because removeRecipe(String name) doesn't cause output to be set and shouldn't, it is necessary to check whether output is null when applying the change.

This commit is contained in:
JacovdW 2019-05-07 10:30:54 +02:00
parent 4e85abed89
commit acabfa6430

View file

@ -87,7 +87,7 @@ public class Crucible {
toRemove.add(entry.getKey());
}
}
if(!output.isEmpty()) {
if(output != null && !output.isEmpty()) {
if(output.matches(InputHelper.toIItemStack(((CrucibleRecipe) entry.getValue()).getRecipeOutput()))) {
toRemove.add(entry.getKey());
}