mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-11 04:54:28 +01:00
Fix FluidTagIngredient testing null tag
This commit is contained in:
parent
96b76a83a1
commit
e45d12c904
@ -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 New Issue
Block a user