Skip to content

Commit 54f39b7

Browse files
Fix recipe search for Ranged Fluid Ingredients on 0 roll (#3968)
1 parent 5cca4fa commit 54f39b7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/com/gregtechceu/gtceu/api/recipe/ingredient/IntProviderFluidIngredient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import lombok.Getter;
2020
import lombok.Setter;
2121
import org.jetbrains.annotations.NotNull;
22+
import org.jetbrains.annotations.Nullable;
2223

2324
/**
2425
* Allows a {@link FluidIngredient} to be created with a ranged {@code amount}, which will be randomly rolled upon
@@ -162,6 +163,11 @@ public static IntProviderFluidIngredient of(FluidStack inner, int min, int max)
162163
return IntProviderFluidIngredient.of(FluidIngredient.of(inner), UniformInt.of(min, max));
163164
}
164165

166+
@Override
167+
public boolean test(@Nullable FluidStack stack) {
168+
return inner.test(stack);
169+
}
170+
165171
/**
166172
* Properties:
167173
* <ul>

0 commit comments

Comments
 (0)