Merge pull request #3822 from rbasamoyai/mc1.18/dev
Fix FluidTagIngredient testing null tag
This commit is contained in:
commit
83a3de8930
1 changed files with 3 additions and 1 deletions
|
@ -204,11 +204,13 @@ public abstract class FluidIngredient implements Predicate<FluidStack> {
|
|||
@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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue