Open USS-Shenzhou opened 1 month ago
Is your file a mod file? (it shouldn't be, those services load at a higher up layer) Have you set up the correct FMLModType in the manifest? Can you share your actual source code or at least the jar in question?
ps. I also tried using jij and shadow to avoid letting players install 2 files but both ways failed either.
FML services load in a different layer than mods. So if your file is a mod file, It's not going to have FML services discovered from it. You have to provide those services in something on the appropriate layer.
Thx, I will try jij and setting FMLModType.
I'm currently developing a lib mod and have added an implementation of
ITransformationService
, an implementation ofICoreMod
and corresponding services files. They work perfectly when I launch the game in both dev/production environment.However, when I implement this lib-mod in another project (by normal gradle implementation from mavenLocal), FML's ServiceLoader seems fails to recognize/find the services provided by the lib mod in dev environment (it doesn't occur in production environment). I was wondering if this requires additional configuration, or is it intentional, or a bug?
My dev environment is the same as MDK-1.21-NeoGradle.