mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-26 15:06:42 +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")
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
protected boolean testInternal(FluidStack t) {
|
protected boolean testInternal(FluidStack t) {
|
||||||
if (tag == null)
|
if (tag == null) {
|
||||||
for (FluidStack accepted : getMatchingFluidStacks())
|
for (FluidStack accepted : getMatchingFluidStacks())
|
||||||
if (accepted.getFluid()
|
if (accepted.getFluid()
|
||||||
.isSame(t.getFluid()))
|
.isSame(t.getFluid()))
|
||||||
return true;
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return t.getFluid().is(tag);
|
return t.getFluid().is(tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue