thedarkcolour / KotlinForForge

Makes Kotlin forge-friendly.
GNU Lesser General Public License v2.1
189 stars 26 forks source link

registerObject is now broken in latest NeoForge version #83

Closed RealYusufIsmail closed 11 months ago

RealYusufIsmail commented 11 months ago

This is because neo forge has changed the way you register an object which can be seen in the following pr

https://github.com/neoforged/NeoForge/pull/257

It now means As RegistryObject no longer exist

RealYusufIsmail commented 11 months ago

Issue currently with update to latest neo forge version in gradle, fix found by @thedarkcolour

thedarkcolour commented 11 months ago

Replaced with an extension function for DeferredHolder.getValue, which allows using the by syntax with any of the DeferredHolders returned by the DeferredRegister. Must use the following import: import thedarkcolour.kotlinforforge.neoforge.forge.getValue