Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong version of NeoForge used with latest version of Energized Power #32

Closed
LunarN0v4 opened this issue Jan 1, 2024 · 2 comments
Closed
Assignees
Labels
NeoForge NeoForge specific bugs

Comments

@LunarN0v4
Copy link

Error was caught during game startup on NeoForge 20.4.69-beta and Minecraft 1.20.4 with LWJGL 3.3.2 (No Java Agents):

java.lang.NoClassDefFoundError: net/neoforged/neoforge/network/event/RegisterPayloadHandlerEvent
	at me.jddev0.ep.EnergizedPowerMod.<init>(EnergizedPowerMod.java:72) ~[energizedpower-1.20.4-2.6.5-neoforge.jar%23233!/:1.20.4-2.6.5-neoforge]
	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.neoforged.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:112) ~[language-java-2.0.7.jar%23262!/:2.0]
	at net.neoforged.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:130) ~[core-2.0.7.jar%23261!/:2.0]
	at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
	at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.ClassNotFoundException: net.neoforged.neoforge.network.event.RegisterPayloadHandlerEvent
	at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:197) ~[securejarhandler-2.1.24.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
	... 15 more
@JDDev0 JDDev0 self-assigned this Jan 1, 2024
@JDDev0 JDDev0 added bug Something isn't working and removed bug Something isn't working labels Jan 1, 2024
@JDDev0 JDDev0 closed this as completed Jan 1, 2024
@JDDev0 JDDev0 added the invalid This doesn't seem right label Jan 1, 2024
@JDDev0 JDDev0 changed the title [Mod/Exception] java.lang.NoClassDefFoundError: net/neoforged/neoforge/network/event/RegisterPayloadHandlerEvent Wrong version of NeoForge used with latest version of Energized Power. Jan 1, 2024
@JDDev0 JDDev0 added the NeoForge NeoForge specific bugs label Jan 1, 2024
@JDDev0 JDDev0 changed the title Wrong version of NeoForge used with latest version of Energized Power. Wrong version of NeoForge used with latest version of Energized Power Jan 1, 2024
@LunarN0v4
Copy link
Author

Attempted update to 20.4.70-beta, problem appears to be solved.

@JDDev0 JDDev0 removed the invalid This doesn't seem right label Jan 1, 2024
@JDDev0
Copy link
Owner

JDDev0 commented Jan 1, 2024

Energized power version 1.20.4-2.6.5-neoforge requires NeoForge 20.4.70-beta or newer. If you want to use NeoForge 20.4.69-beta or older you need to install Energized power version 1.20.4-2.6.4-neoforge or older.

NeoForge has introduced a breaking change in the NeoForge networking API in version 20.4.70-beta. FYI NeoForge will most likely introduce more breaking changes until the first stable non-beta release of NeoForge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeoForge NeoForge specific bugs
Projects
None yet
Development

No branches or pull requests

2 participants