-
-
Notifications
You must be signed in to change notification settings - Fork 211
Closed
Description
o/ so its offical too, I tried using ModifyArgs to replace values in a constructor.
While it was working on startup when the code changed started to be accessed it caused a "ClassNotFoundException"
java.lang.NoClassDefFoundError: org/spongepowered/asm/synthetic/args/Args$1
at net.minecraft.server.WorldLoader$PackConfig.createResourceManager(WorldLoader.java:44) ~[forge-1.19-41.0.30_mapped_official_1.19-recomp.jar%2390!/:?] {re:classloading}
at net.minecraft.server.WorldLoader.load(WorldLoader.java:20) ~[forge-1.19-41.0.30_mapped_official_1.19-recomp.jar%2390!/:?] {re:classloading}
at net.minecraft.client.gui.screens.worldselection.CreateWorldScreen.openFresh(CreateWorldScreen.java:116) ~[forge-1.19-41.0.30_mapped_official_1.19-recomp.jar%2390!/:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:chunkpregen.mixins.json:client.CreateNewWorldMixin,pl:mixin:A,pl:runtimedistcleaner:A}
Here is the mixin being used
@Mixin(MinecraftServer.class)
public class ServerSeedMixin
{
@ModifyArgs(method = "createLevels", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/level/ServerLevel;<init>", ordinal = 1))
public void onWorldLoad(Args args)
{
System.out.println("Size="+args.size()+", Dimension="+args.get(4)+", Seed="+args.get(7));
}
}
I am using the forge beta for 1.19 mappings should be visible through the crashlog.