From 3be98ab6123a02923711203a553088b5f89d0a4a Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Sun, 8 Sep 2019 23:43:10 +0100 Subject: [PATCH] Fix JEI log spam about mana flask recharging recipes having empty output Either JEI shouldn't be erroring or the Forge javadoc is wrong. Either way, it seems to make no difference so let's not bother with it. --- .../wizardry/misc/RecipeRechargeWithFlask.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/electroblob/wizardry/misc/RecipeRechargeWithFlask.java b/src/main/java/electroblob/wizardry/misc/RecipeRechargeWithFlask.java index 497277f6..5711eabc 100644 --- a/src/main/java/electroblob/wizardry/misc/RecipeRechargeWithFlask.java +++ b/src/main/java/electroblob/wizardry/misc/RecipeRechargeWithFlask.java @@ -15,8 +15,6 @@ import net.minecraftforge.fml.common.gameevent.PlayerEvent; import net.minecraftforge.oredict.OreDictionary; import net.minecraftforge.oredict.ShapelessOreRecipe; -import javax.annotation.Nonnull; - /** * Implements a dynamic crafting recipe for recharging items with mana flasks. * @@ -42,11 +40,12 @@ public class RecipeRechargeWithFlask extends ShapelessOreRecipe { this.flask = flask; } - @Nonnull - @Override - public ItemStack getRecipeOutput(){ - return ItemStack.EMPTY; // According to the javadoc, dynamic recipes are supposed to return an empty stack here - } + // Commented out for now because JEI spams the log with errors about the recipe having no output +// @Nonnull +// @Override +// public ItemStack getRecipeOutput(){ +// return ItemStack.EMPTY; // According to the javadoc, dynamic recipes are supposed to return an empty stack here +// } @Override public ItemStack getCraftingResult(InventoryCrafting inv){