KotlinForForge icon indicating copy to clipboard operation
KotlinForForge copied to clipboard

[NeoForge] Unable to use reflections to locate packages

Open Edouard127 opened this issue 10 months ago • 1 comments

I have update https://github.com/Edouard127/ClassLoaderError for testing

When launching the mod in NeoForge production, the mod is unable to find specific classes or packages It works flawlessly in fabric, forge and quilt

I am using https://github.com/ronmamo/reflections I don't know why that would happen and I wonder if you know the issue

Edouard127 avatar May 04 '24 19:05 Edouard127

The libraries required for reflections are both in the gamelibrary layer if that could help you

[15:26:47.208] [main/INFO] [loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "javassist-3.28.0-GA.jar" of type GAMELIBRARY with provider net.neoforged.fml.loading.moddiscovery.JarInJarDependencyLocator@4917d36b 
[15:26:47.209] [main/INFO] [loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "reflections-0.10.2.jar" of type GAMELIBRARY with provider net.neoforged.fml.loading.moddiscovery.JarInJarDependencyLocator@4917d36b 

Edouard127 avatar May 04 '24 19:05 Edouard127

Closing since this is an unrelated issue. The root cause is unknown but my eyes are on NeoForge's uri scheme

Edouard127 avatar Aug 26 '24 19:08 Edouard127