mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-13 05:54:17 +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")
|
@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 New Issue
Block a user