Architectury API (Fabric/Forge/NeoForge)

Architectury API (Fabric/Forge/NeoForge)

158M Downloads

RegistryBuilder change causes crash with Forge

Lucraft opened this issue ยท 0 comments

commented

Ever since Forge v40.0.18 RegistryBuilder#create has been made private (commit) , which makes Architectury crash the game when you are adding new registries

Crash Report java.lang.IllegalAccessError: class dev.architectury.registry.registries.forge.RegistriesImpl$RegistryBuilderWrapper tried to access method 'net.minecraftforge.registries.IForgeRegistry net.minecraftforge.registries.RegistryBuilder.create()' at dev.architectury.registry.registries.forge.RegistriesImpl$RegistryBuilderWrapper.build(RegistriesImpl.java:346) ~[B43ba455c454e-B43ba455c454e.jar%2371!/:?] {re:classloading} at net.threetag.palladium.power.ability.Ability.(Ability.java:33) ~[5126690622033953863.jar%2379!/:?] {re:classloading,re:mixin} at net.threetag.palladium.power.ability.Abilities.(Abilities.java:11) ~[5126690622033953863.jar%2379!/:?] {re:classloading,re:mixin} at net.threetag.palladium.Palladium.init(Palladium.java:52) ~[5126690622033953863.jar%2379!/:?] {re:classloading} at net.threetag.palladium.forge.PalladiumForge.(PalladiumForge.java:37) ~[%2369!/:?] {re:classloading} at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] {} at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] {} at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] {} at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:67) ~[javafmllanguage-1.18.2-40.1.0.jar%2366!/:?] {} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:106) ~[fmlcore-1.18.2-40.1.0.jar%2368!/:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.run$$$capture(CompletableFuture.java:1804) ~[?:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java) ~[?:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {} at java.util.concurrent.ForkJoinTask.doExec$$$capture(ForkJoinTask.java:373) ~[?:?] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java) ~[?:?] {} at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {} at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:mixin,re:computing_frames} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:mixin,re:computing_frames} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}