Architectury API (Fabric/Forge/NeoForge)

Architectury API (Fabric/Forge/NeoForge)

170M Downloads

NeoForge 1.20.2 Holder does not implement Supplier, resulting in FluidStack crash.

brandon3055 opened this issue ยท 3 comments

commented

In NeoForge 20.2.59-beta Supplier was removed from net.minecraft.core.Holder

Commit: neoforged/NeoForge@ed1b477

This is the patch that was removed:
https://github.com/neoforged/NeoForge/blob/1ba480f54685088db109e719081d23fb5bc3848e/patches/net/minecraft/core/Holder.java.patch

As a result, FluidStack creation via FluidStack#create(FluidStack, long) crashes with:
java.lang.IncompatibleClassChangeError: Class net.minecraft.core.Holder$Reference does not implement the requested interface java.util.function.Supplier
Full Crash: https://ss.brandon3055.com/ebe85

commented

wasn't that fixed in #483?

commented

wasn't that fixed in #483?

That fix appears to be for 1.20.4, It's still broken in 1.20.2

commented

Should be closed by #485