mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 11:05:13 +01:00
SPIGOT-6957: Bad default value for WorldCreator#generatorSettings
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f43d18915d
commit
33a94c62e0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue