From dc03d1c20023279d72114351b67360cc2bbb811e Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 11 Mar 2024 12:15:42 +0100 Subject: [PATCH] Merge pull request #483 from desht/desht-forge-fluid-fix fix: FluidStackImpl#getRawFluidSupplier crashing on forge/neoforge --- .../main/java/dev/architectury/fluid/forge/FluidStackImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge/src/main/java/dev/architectury/fluid/forge/FluidStackImpl.java b/forge/src/main/java/dev/architectury/fluid/forge/FluidStackImpl.java index cdbc1543..b39bf5b9 100644 --- a/forge/src/main/java/dev/architectury/fluid/forge/FluidStackImpl.java +++ b/forge/src/main/java/dev/architectury/fluid/forge/FluidStackImpl.java @@ -54,7 +54,7 @@ public FluidStack create(Supplier fluid, long amount, CompoundTag tag) { @Override public Supplier getRawFluidSupplier(FluidStack object) { - return BuiltInRegistries.FLUID.getHolderOrThrow(BuiltInRegistries.FLUID.getResourceKey(object.getRawFluid()).orElseThrow()); + return () -> BuiltInRegistries.FLUID.getHolderOrThrow(BuiltInRegistries.FLUID.getResourceKey(object.getRawFluid()).orElseThrow()).value(); } @Override