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:
parent
4e85abed89
commit
acabfa6430
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue