diff --git a/src/main/java/com/ferreusveritas/dynamictrees/util/DendroBrewingRecipe.java b/src/main/java/com/ferreusveritas/dynamictrees/util/DendroBrewingRecipe.java index 09818b624..de23aef84 100644 --- a/src/main/java/com/ferreusveritas/dynamictrees/util/DendroBrewingRecipe.java +++ b/src/main/java/com/ferreusveritas/dynamictrees/util/DendroBrewingRecipe.java @@ -28,10 +28,10 @@ public DendroBrewingRecipe(final ItemStack input, final ItemStack ingredient, fi public boolean isInput(final ItemStack inputStack) { // Only allow Potion.AWKWARD or DendroPotion and for DendroPotion.TRANSFORM, only if it doesn't already have a tree tag. if ((!inputStack.getOrCreateTag().contains(DendroPotion.TREE_TAG_KEY) && inputStack.getOrCreateTag().contains(DendroPotion.INDEX_TAG_KEY)) || inputStack.getItem() == Items.POTION) { - return true; + return true; + } + return false; } - return false; - } @Override public boolean isIngredient(final ItemStack ingredientStack) { @@ -43,13 +43,13 @@ public ItemStack getOutput(final ItemStack inputStack, final ItemStack ingredien // We need to apply logic for the brewing or simply the ingredient defines the output and any input was allowed // A smarter way would be nice, but it works if (!inputStack.isEmpty() && !ingredientStack.isEmpty() && isIngredient(ingredientStack) && isInput(inputStack)) { - if (ingredientStack.is(Items.CHARCOAL) && PotionUtils.getPotion(inputStack) == Potion.byName("awkward")) { + if (ingredientStack.is(Items.CHARCOAL) & PotionUtils.getPotion(inputStack) == Potion.byName("awkward")) { return this.output.copy(); } if (ingredientStack.is(Items.CHARCOAL) | inputStack.getItem() == Items.POTION) { return ItemStack.EMPTY; } - if ((ingredientStack.is(Items.SLIME_BALL) || ingredientStack.is(Items.PUMPKIN_SEEDS) || ingredientStack.is(Items.GHAST_TEAR) || ingredientStack.is(Items.PRISMARINE_CRYSTALS)) && DendroPotion.getPotionType(inputStack) == DendroPotion.DendroPotionType.BIOCHAR) { + if ((ingredientStack.is(Items.SLIME_BALL) || ingredientStack.is(Items.PUMPKIN_SEEDS) || ingredientStack.is(Items.GHAST_TEAR) || ingredientStack.is(Items.PRISMARINE_CRYSTALS)) & DendroPotion.getPotionType(inputStack) == DendroPotion.DendroPotionType.BIOCHAR) { return this.output.copy(); } if ((ingredientStack.is(Items.SLIME_BALL) || ingredientStack.is(Items.PUMPKIN_SEEDS) || ingredientStack.is(Items.GHAST_TEAR) || ingredientStack.is(Items.PRISMARINE_CRYSTALS)) | DendroPotion.getPotionType(inputStack) != DendroPotion.DendroPotionType.TRANSFORM) {