mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-25 14:36:29 +01:00
Fix FluidTagIngredient testing null tag
This commit is contained in:
parent
96b76a83a1
commit
e45d12c904
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