Fix second usage of worldGenSettings just in case

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

View File

@ -239,7 +239,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);
+ } + }
+ +
+ worlddata = new WorldDataServer(worldsettings, generatorsettings, Lifecycle.stable()); + worlddata = new WorldDataServer(worldsettings, generatorsettings, Lifecycle.stable());