[Change] WorldPreset automatically sets DEFAULT to first registered Preset
This commit is contained in:
parent
e70823a587
commit
dd27373063
8 changed files with 24 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ public class PresetsRegistry {
|
|||
false
|
||||
);
|
||||
|
||||
WorldPresets.DEFAULT = BCL_WORLD;
|
||||
WorldPresets.setDEFAULT(BCL_WORLD);
|
||||
}
|
||||
|
||||
public static TogetherWorldPreset buildPreset(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue