SPIGOT-6957: Bad default value for WorldCreator#generatorSettings
This commit is contained in:
parent
ce373be660
commit
21fe78aa4f
@ -1034,7 +1034,7 @@ public final class CraftServer implements Server {
|
|||||||
WorldSettings worldSettings;
|
WorldSettings worldSettings;
|
||||||
// See MinecraftServer.a(String, String, long, WorldType, JsonElement)
|
// See MinecraftServer.a(String, String, long, WorldType, JsonElement)
|
||||||
if (worlddata == null) {
|
if (worlddata == null) {
|
||||||
DedicatedServerProperties.a properties = new DedicatedServerProperties.a(Objects.toString(creator.seed()), ChatDeserializer.parse(creator.generatorSettings()), creator.generateStructures(), creator.type().name().toLowerCase(Locale.ROOT));
|
DedicatedServerProperties.a properties = new DedicatedServerProperties.a(Objects.toString(creator.seed()), ChatDeserializer.parse((creator.generatorSettings().isEmpty()) ? "{}" : creator.generatorSettings()), creator.generateStructures(), creator.type().name().toLowerCase(Locale.ROOT));
|
||||||
|
|
||||||
GeneratorSettings generatorsettings = GeneratorSettings.create(console.registryAccess(), properties);
|
GeneratorSettings generatorsettings = GeneratorSettings.create(console.registryAccess(), properties);
|
||||||
worldSettings = new WorldSettings(name, EnumGamemode.byId(getDefaultGameMode().getValue()), hardcore, EnumDifficulty.EASY, false, new GameRules(), console.datapackconfiguration);
|
worldSettings = new WorldSettings(name, EnumGamemode.byId(getDefaultGameMode().getValue()), hardcore, EnumDifficulty.EASY, false, new GameRules(), console.datapackconfiguration);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user