Skip to content

Commit

Permalink
Merge pull request #483 from desht/desht-forge-fluid-fix
Browse files Browse the repository at this point in the history
fix: FluidStackImpl#getRawFluidSupplier crashing on forge/neoforge
  • Loading branch information
MaxNeedsSnacks authored Mar 11, 2024
2 parents 0c3f7c6 + 3fbee10 commit 327480e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public FluidStack create(Supplier<Fluid> fluid, long amount, CompoundTag tag) {

@Override
public Supplier<Fluid> 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
Expand Down

0 comments on commit 327480e

Please sign in to comment.