Wrap the Holder.Reference returned from Registry#getHolderOrThrow in an actual Supplier
Holder.Reference does not implement Supplier so attempting to create a fluidstack currently crashes:
Caused by: java.lang.IncompatibleClassChangeError: Class net.minecraft.core.Holder$Reference does not implement the requested interface java.util.function.Supplier
at dev.architectury.fluid.forge.FluidStackImpl.create(FluidStackImpl.java:52) ~[architectury-neoforge-11.1.13.jar%23177!/:?] {re:classloading}
at dev.architectury.fluid.forge.FluidStackImpl.create(FluidStackImpl.java:33) ~[architectury-neoforge-11.1.13.jar%23177!/:?] {re:classloading}
at dev.architectury.fluid.FluidStack.<init>(FluidStack.java:44) ~[architectury-neoforge-11.1.13.jar%23177!/:?] {re:classloading}
at dev.architectury.fluid.FluidStack.copyWithAmount(FluidStack.java:245) ~[architectury-neoforge-11.1.13.jar%23177!/:?] {re:classloading}
at
...
Wrap the
Holder.Reference
returned fromRegistry#getHolderOrThrow
in an actualSupplier
Holder.Reference
does not implementSupplier
so attempting to create a fluidstack currently crashes: