SPIGOT-7196: Exception loading alternate worlds

This commit is contained in:
md_5 2022-12-08 18:02:21 +11:00
parent 0ff61e8fab
commit eecb4c0dc0
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -1085,7 +1085,7 @@ public final class CraftServer implements Server {
long j = BiomeManager.obfuscateSeed(creator.seed());
List<MobSpawner> list = ImmutableList.of(new MobSpawnerPhantom(), new MobSpawnerPatrol(), new MobSpawnerCat(), new VillageSiege(), new MobSpawnerTrader(worlddata));
WorldDimension worlddimension = (WorldDimension) iregistry.get(actualDimension);
WorldDimension worlddimension = this.getServer().registries().compositeAccess().registryOrThrow(Registries.LEVEL_STEM).get(actualDimension);
WorldInfo worldInfo = new CraftWorldInfo(worlddata, worldSession, creator.environment(), worlddimension.type().value());
if (biomeProvider == null && generator != null) {