@@ -43,8 +43,9 @@ public static void addRecipe(IItemStack input, IItemStack output, int rarity) {
4343
4444 addRecipe (input , new IItemStack [] { output }, new int [] { rarity });
4545 }
46-
47- public static void addRecipe (IItemStack input , IItemStack [] output , int [] rarity ) {
46+
47+ @ ZenMethod
48+ public static void addRecipe (IItemStack input , IItemStack [] output , int [] rarity ) {
4849 if (input == null || output == null || rarity == null ) {
4950 LogHelper .logError (String .format ("Required parameters missing for %s recipe." , name ));
5051 return ;
@@ -96,7 +97,7 @@ public void apply() {
9697 }
9798
9899 if (!backup .isEmpty ()) {
99- LogHelper .logWarning (String .format ("Overwritten %d %s recipe outputs for %s." , backup .size (), Hammer . name , LogHelper .getStackDescription (entry .getKey ().getStack ())));
100+ LogHelper .logWarning (String .format ("Overwritten %d %s recipe outputs for %s." , backup .size (), name , LogHelper .getStackDescription (entry .getKey ().getStack ())));
100101 overwritten .put (entry .getKey (), backup );
101102 }
102103
@@ -195,7 +196,7 @@ public static void removeRecipe(IIngredient input, @Optional IIngredient output)
195196 if (!recipes .isEmpty ()) {
196197 MineTweakerAPI .apply (new Remove (recipes ));
197198 } else {
198- LogHelper .logWarning (String .format ("No %s recipes found for %s and %s. Command ignored!" , input .toString (), output .toString ()));
199+ LogHelper .logWarning (String .format ("No %s recipes found for %s and %s. Command ignored!" , name , input .toString (), output .toString ()));
199200 }
200201 }
201202
0 commit comments