Merge pull request #723 from DreamThorn/fix-721

Fix for NullPointerException when using Crucible.removeRecipe(String name)
This commit is contained in:
Jared 2020-02-14 00:08:33 +02:00 committed by GitHub
commit 4dc4570445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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());
}