SPIGOT-6823: Fix loading custom world in combination with superflat

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-12-03 08:34:38 +11:00
parent 215251ce7b
commit ea74321d65
2 changed files with 30 additions and 30 deletions

View File

@@ -1033,8 +1033,7 @@ public final class CraftServer implements Server {
boolean hardcore = creator.hardcore();
RegistryReadOps<NBTBase> registryreadops = RegistryReadOps.createAndLoad(DynamicOpsNBT.INSTANCE, console.resources.getResourceManager(), console.registryHolder);
WorldDataServer worlddata = (WorldDataServer) worldSession.getDataTag(registryreadops, console.datapackconfiguration);
WorldDataServer worlddata = (WorldDataServer) worldSession.getDataTag(console.registryreadops, console.datapackconfiguration);
WorldSettings worldSettings;
// See MinecraftServer.a(String, String, long, WorldType, JsonElement)