From 5182f92349e69e10e9d6dccd5488c9d1abd32e74 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 11 Jun 2021 16:16:36 +1000 Subject: [PATCH] SPIGOT-6504: Fix generating fresh worlds --- nms-patches/net/minecraft/server/MinecraftServer.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/net/minecraft/server/MinecraftServer.patch b/nms-patches/net/minecraft/server/MinecraftServer.patch index 3fd606037..fcc70bac2 100644 --- a/nms-patches/net/minecraft/server/MinecraftServer.patch +++ b/nms-patches/net/minecraft/server/MinecraftServer.patch @@ -149,7 +149,7 @@ + DedicatedServerProperties dedicatedserverproperties = ((DedicatedServer) this).getDedicatedServerProperties(); + + 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());