Skip to content

Commit

Permalink
Update DendroBrewingRecipe.java
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleEyeLogic authored Jul 6, 2024
1 parent 674725f commit 4871b3f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 4871b3f

Please sign in to comment.