From 26bf197197eb703573d1d7f70c5085fc8f866766 Mon Sep 17 00:00:00 2001 From: Jab125 <67534807+Jab125@users.noreply.github.com> Date: Sun, 5 May 2024 15:20:06 +1000 Subject: [PATCH] Fix FluidStack.EMPTY always being null (#503) --- common/src/main/java/dev/architectury/fluid/FluidStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/dev/architectury/fluid/FluidStack.java b/common/src/main/java/dev/architectury/fluid/FluidStack.java index 6d0d8d34..26f7d2d5 100644 --- a/common/src/main/java/dev/architectury/fluid/FluidStack.java +++ b/common/src/main/java/dev/architectury/fluid/FluidStack.java @@ -43,7 +43,7 @@ public final class FluidStack implements DataComponentHolder { private static final FluidStackAdapter ADAPTER = adapt(FluidStack::getValue, FluidStack::new); - private static final FluidStack EMPTY = create(Fluids.EMPTY, 0); + private static final FluidStack EMPTY = new FluidStack(() -> Fluids.EMPTY, 0, DataComponentPatch.EMPTY); public static final Codec CODEC = ADAPTER.codec(); public static final StreamCodec STREAM_CODEC = ADAPTER.streamCodec();