Clean up some logging + protect against negative values in Altar Recipes
This commit is contained in:
parent
43f2bdd28a
commit
61b2b293ba
6 changed files with 20 additions and 38 deletions
|
@ -18,7 +18,7 @@ public class BindingRecipeRegistry {
|
|||
if (!recipes.containsValue(recipe))
|
||||
recipes.put(recipe.getInput(), recipe);
|
||||
else
|
||||
BloodMagicAPI.getLogger().error("Error adding binding recipe for " + recipe.input.getDisplayName() + (recipe.output == null ? "" : " -> " + recipe.output.getDisplayName()) + ". Recipe already exists.");
|
||||
BloodMagicAPI.getLogger().error("Error adding binding recipe for %s %s. Recipe already exists.", recipe.input.getDisplayName(), recipe.output == null ? "" : " -> " + recipe.output.getDisplayName());
|
||||
}
|
||||
|
||||
public static BindingRecipe getRecipeForInput(ItemStack input) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue