From 4871b3f216c494648a6fd28b7b34d7200562796a Mon Sep 17 00:00:00 2001 From: EagleEyeLogic <69814047+EagleEyeLogic@users.noreply.github.com> Date: Sat, 6 Jul 2024 23:20:23 +0200 Subject: [PATCH] Update DendroBrewingRecipe.java --- .../dynamictrees/util/DendroBrewingRecipe.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) {