[Change] WorldPreset automatically sets DEFAULT to first registered Preset

This commit is contained in:
Frank 2022-06-30 09:52:04 +02:00
parent e70823a587
commit dd27373063
8 changed files with 24 additions and 8 deletions

View file

@ -13,6 +13,6 @@ public class DedicatedServerPropertiesMixin {
//Make sure the default server properties use our Default World Preset
@ModifyArg(method = "<init>", index = 3, at = @At(value = "INVOKE", target = "Lnet/minecraft/server/dedicated/DedicatedServerProperties$WorldGenProperties;<init>(Ljava/lang/String;Lcom/google/gson/JsonObject;ZLjava/lang/String;)V"))
private String bcl_init(String levelType) {
return WorldPresets.DEFAULT.location().toString();
return WorldPresets.getDEFAULT().location().toString();
}
}