Skip to content

Commit

Permalink
Fixed multiple "NONE" recipe types
Browse files Browse the repository at this point in the history
  • Loading branch information
NCBPFluffyBear committed Aug 27, 2021
1 parent 42a59c9 commit 459ec3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/ncbpfluffybear/slimecustomizer/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ public static ItemStack[] buildCraftingRecipe(Config file, String key, RecipeTyp
return null;
}

SlimeCustomizer.existingRecipes.put(recipe, new Pair<>(recipeType, key));
if (!(recipeType == RecipeType.NULL)) {
SlimeCustomizer.existingRecipes.put(recipe, new Pair<>(recipeType, key));
}
return recipe;
}

Expand Down

0 comments on commit 459ec3d

Please sign in to comment.