This PR adds support for loading multiple @Mod classes in a single jar, along with actually showing mods besides the first in ModMenu. The second part does not work in development environments because loader doesn't load jar-in-jar mods for some reason.
Fabric does not support having multiple mods in one manifest. To get around this, Patchwork generates a dummy mod jar with a converted manifest for each mod besides the first one (the 'parent'). These dummy mods do not contain initailizers, mixins, or any classes. Instead, all of this logic is done only in the parent.
This PR will be followed up by one to Runtime that adds a test mod workspace.
This PR adds support for loading multiple
@Mod
classes in a single jar, along with actually showing mods besides the first in ModMenu. The second part does not work in development environments because loader doesn't load jar-in-jar mods for some reason.Fabric does not support having multiple mods in one manifest. To get around this, Patchwork generates a dummy mod jar with a converted manifest for each mod besides the first one (the 'parent'). These dummy mods do not contain initailizers, mixins, or any classes. Instead, all of this logic is done only in the parent. This PR will be followed up by one to Runtime that adds a test mod workspace.