From e45d12c9047126d1e5263758a7f2be692533f565 Mon Sep 17 00:00:00 2001 From: rbasamoyai <86567158+rbasamoyai@users.noreply.github.com> Date: Sun, 25 Sep 2022 23:36:15 -0400 Subject: [PATCH] Fix FluidTagIngredient testing null tag --- .../com/simibubi/create/foundation/fluid/FluidIngredient.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/foundation/fluid/FluidIngredient.java b/src/main/java/com/simibubi/create/foundation/fluid/FluidIngredient.java index b74e6e5dd..ba85a3dc2 100644 --- a/src/main/java/com/simibubi/create/foundation/fluid/FluidIngredient.java +++ b/src/main/java/com/simibubi/create/foundation/fluid/FluidIngredient.java @@ -204,11 +204,13 @@ public abstract class FluidIngredient implements Predicate { @SuppressWarnings("deprecation") @Override protected boolean testInternal(FluidStack t) { - if (tag == null) + if (tag == null) { for (FluidStack accepted : getMatchingFluidStacks()) if (accepted.getFluid() .isSame(t.getFluid())) return true; + return false; + } return t.getFluid().is(tag); }