Skip to content

Commit 60ad62a

Browse files
committed
fix crash in FluidIngredient testing (pizzer)
1 parent 3f68773 commit 60ad62a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/dafuqs/spectrum/api/recipe/FluidIngredient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public Identifier id() {
9999

100100
public boolean test(@NotNull Fluid fluid) {
101101
Objects.requireNonNull(fluid);
102-
if (this == EMPTY && fluid != Fluids.EMPTY) return false;
102+
if (this == EMPTY) return fluid == Fluids.EMPTY;
103103
if (this.fluid != null) return this.fluid == fluid;
104104
if (this.tag != null) return fluid.getDefaultState().isIn(this.tag);
105105

0 commit comments

Comments
 (0)