thedarkcolour / KotlinForForge

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

[NeoForge] Unable to use reflections to locate packages #99

Open Edouard127 opened 2 months ago

Edouard127 commented 2 months ago

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 commented 2 months ago

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