Closed desht closed 3 weeks ago
The static init for FluidStack.EMPTY appears to be incorrect:
FluidStack.EMPTY
private static final FluidStack EMPTY = create(Fluids.EMPTY, 0);
Following the create() method call chain leads to this method:
create()
public static FluidStack create(Fluid fluid, long amount, DataComponentPatch patch) { if (fluid == Fluids.EMPTY || amount <= 0) return empty(); return create(() -> fluid, amount, patch); }
Since the amount is 0, empty() is called, which returns EMPTY, which at this point is still null.
empty()
EMPTY
The static init for
FluidStack.EMPTY
appears to be incorrect:Following the
create()
method call chain leads to this method:Since the amount is 0,
empty()
is called, which returnsEMPTY
, which at this point is still null.