Open ptk2003 opened 2 years ago
Can you provide more details? like some errors line in your game launcher.
Mod File: SimElectricity-1.0.0.jar
Failure message: SimElectricity Essential (sime_essential) has failed to load correctly
java.lang.NoClassDefFoundError: net/minecraftforge/event/RegistryEvent$NewRegistry
Mod Version: 1.0.0
Mod Issue URL: https://github.com/RoyalAliceAcademyOfSciences/SimElectricity/issues
Exception message: java.lang.ClassNotFoundException: net.minecraftforge.event.RegistryEvent$NewRegistry
Maybe you need redownload forge and its library? I guess. enable your VPN if you are living in China.
I download and install latest 1.18.2-forge-40.1.16 it not solve issue (same error), all other mods build for 1.18.2 loading properly (they are removed for test to prevent mod incompatible).
Wich version of forge you can load mod (tested)?
Hey, @rikka0w0 ! We need some help.
Hi. Any news?
That's a known problem, 1.18.1->1.18.2 isn't a minor update, despite the gameplay does not change at all, things have changed quite a lot internally. I'm working on a total re-write of the registry stuff and it will fix this issue. Be patient. If you are also a developer, any help would be appreciated.
Basically, the problem originates from the instantiation of registrable objects. Before 1.18.2, you can instantiate those things at any time before the actual registration happens, so we chose to initialize them statically. But since 1.18.2, you have to instantiate them at the correct instant, just before the registration event is fired.
I can build jar from source 1.18.1 but it not loading in 1.18.2 mc