Skip to content

Commit

Permalink
Make blood infuser recipe matching more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 29, 2024
1 parent e7b6b7f commit adf0763
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public Optional<Float> getXp() {
@Override
public boolean matches(IInventoryFluidTier inv, Level worldIn) {
return this.getInputTier().map(t -> t <= inv.getTier()).orElse(true)
&& inputIngredient.map(p -> p.test(inv.getItem(0))).orElse(true)
&& inputFluid.map(f -> f.getFluid() == inv.getFluidHandler().getFluidInTank(0).getFluid()).orElse(true)
&& inputFluid.map(f -> f.getAmount() <= inv.getFluidHandler().getFluidInTank(0).getAmount()).orElse(true);
&& inputIngredient.map(p -> p.test(inv.getItem(0))).orElse(inv.getItem(0).isEmpty())
&& inputFluid.map(f -> f.getFluid() == inv.getFluidHandler().getFluidInTank(0).getFluid()).orElse(inv.getFluidHandler().getFluidInTank(0).isEmpty())
&& inputFluid.map(f -> f.getAmount() <= inv.getFluidHandler().getFluidInTank(0).getAmount()).orElse(inv.getFluidHandler().getFluidInTank(0).isEmpty());
}

@Override
Expand Down

0 comments on commit adf0763

Please sign in to comment.