Closed 1zun4 closed 6 years ago
LaunchWrapper is not being used for 1.13, work is underway to transition to ModLauncher.
public class LaunchService implements ILaunchHandlerService {
@Override
public String name() {
return "liquidbounce";
}
@Override
public Path[] identifyTransformationTargets() {
return new Path[0];
}
@Override
public Callable<Void> launchService(String[] arguments, ITransformingClassLoader launchClassLoader) {
return () -> {
// TODO: Fix exception (org.spongepowered.asm.service.ServiceNotAvailableError: No mixin host service is available)
MixinBootstrap.init();
Mixins.addConfiguration("mixins.liquidbounce.json");
MixinEnvironment.getDefaultEnvironment().setSide(MixinEnvironment.Side.CLIENT);
// Working fine (from DefaultLaunchHandlerService)
final Class<?> mcClass = Class.forName("net.minecraft.client.main.Main", true, launchClassLoader.getInstance());
final Method mcClassMethod = mcClass.getMethod("main", String[].class);
mcClassMethod.invoke(null, (Object) arguments);
return null;
};
}
}
Same issue with ModLauncher.
ModLauncher support is underway, it's not supported yet.
Oh, okay. Do you any ideas how I could use mixin to modify 1.13?
If you do use it on 1.13 you are on your own. If you actually had the common sense to search for the issue you're having you would discover that this question about the service host has been asked and answered already.
You are literally going to put yourself in a position where you're incompatible with everything else for 1.13 though so I would vehemently recommend against it.
Hey,
i currently try to launch mixin in 1.13 with LaunchWrapper... It works fine in my workspace, but if I export my jar and try to launch it with the json... Mixin don't find the mixin service. I didn't found the reason yet. Anyone have a idea, why it don't work?
Launch json
Tweaker
Exception