SPIGOT-6504: Fix generating fresh worlds

This commit is contained in:
md_5 2021-06-11 16:16:36 +10:00
parent e2f5ea34e9
commit 5182f92349
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -149,7 +149,7 @@
+ DedicatedServerProperties dedicatedserverproperties = ((DedicatedServer) this).getDedicatedServerProperties(); + DedicatedServerProperties dedicatedserverproperties = ((DedicatedServer) this).getDedicatedServerProperties();
+ +
+ worldsettings = new WorldSettings(dedicatedserverproperties.levelName, dedicatedserverproperties.gamemode, dedicatedserverproperties.hardcore, dedicatedserverproperties.difficulty, false, new GameRules(), datapackconfiguration); + worldsettings = new WorldSettings(dedicatedserverproperties.levelName, dedicatedserverproperties.gamemode, dedicatedserverproperties.hardcore, dedicatedserverproperties.difficulty, false, new GameRules(), datapackconfiguration);
+ generatorsettings = options.has("bonusChest") ? dedicatedserverproperties.worldGenSettings.j() : dedicatedserverproperties.worldGenSettings; + generatorsettings = options.has("bonusChest") ? dedicatedserverproperties.a((IRegistryCustom) iregistrycustom_dimension).j() : dedicatedserverproperties.a((IRegistryCustom) iregistrycustom_dimension);
+ } + }
+ +
+ overworldData = new WorldDataServer(worldsettings, generatorsettings, Lifecycle.stable()); + overworldData = new WorldDataServer(worldsettings, generatorsettings, Lifecycle.stable());