2021-10-17 17:10:03 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Date: Sat, 16 Oct 2021 17:38:35 -0700
Subject: [PATCH] Use correct LevelStem registry when loading default
end/nether
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
2022-03-04 08:09:43 +00:00
index f37dfe1bd53567239bf69852e75f09440dc1628c..a9fce6bd112c06453b7f460f3d746e290dca5f4a 100644
2021-10-17 17:10:03 +00:00
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
2022-03-01 05:43:03 +00:00
@@ -565,7 +565,14 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
2021-10-17 17:10:03 +00:00
long i = generatorsettings.seed();
long j = BiomeManager.obfuscateSeed(i);
List<CustomSpawner> list = ImmutableList.of(new PhantomSpawner(), new PatrolSpawner(), new CatSpawner(), new VillageSiege(), new WanderingTraderSpawner(iworlddataserver));
2022-03-01 05:43:03 +00:00
- LevelStem worlddimension = (LevelStem) iregistry.get(dimensionKey);
2021-10-17 17:10:03 +00:00
+ // Paper start - Use correct LevelStem registry
2021-11-12 22:27:26 +00:00
+ final LevelStem worlddimension;
+ if (dimensionKey == LevelStem.END || dimensionKey == LevelStem.NETHER) {
+ worlddimension = generatorsettings.dimensions().get(dimensionKey);
+ } else {
2022-03-01 05:43:03 +00:00
+ worlddimension = iregistry.get(dimensionKey);
2021-10-17 17:10:03 +00:00
+ }
+ // Paper end
2022-03-01 05:43:03 +00:00
Holder<DimensionType> holder;
2021-10-17 17:10:03 +00:00
ChunkGenerator chunkgenerator;