@@ -140,7 +140,6 @@ public ResourceKey<LevelStem> getTypeKey() {
140
140
// in order to avoid having to pass them as arguments.
141
141
craftBridge .bridge$offerGeneratorCache (worldInfo .getLevelName (), gen );
142
142
craftBridge .bridge$offerBiomeProviderCache (worldInfo .getLevelName (), biomeProvider );
143
- // Wrap the
144
143
arclight$constructor (server , backgroundExecutor , levelSave , worldInfo , dimension , levelStem , statusListener , isDebug , seed , specialSpawners , shouldBeTicking , seq );
145
144
bridge$getWorld ();
146
145
}
@@ -154,10 +153,8 @@ public ResourceKey<LevelStem> getTypeKey() {
154
153
private ChunkGenerator arclight$initChunkGenerator (LevelStem instance , @ Local (ordinal = -1 ) MinecraftServer server , @ Local (ordinal = -1 ) ServerLevelData worldInfo ) throws Throwable {
155
154
// Pulling up world info init since level info is used when selecting ChunkGenerator.
156
155
if (worldInfo instanceof PrimaryLevelData primary ) {
157
- ((WorldInfoBridge ) primary ).bridge$setWorld ((ServerLevel ) (Object ) this );
158
156
this .K = primary ;
159
157
} else {
160
- ArclightServer .LOGGER .warn ("Level {} isn't initialized with PrimaryLevelData." , this .serverLevelData .getLevelName ());
161
158
// damn spigot again
162
159
this .K = DelegateWorldInfo .wrap (worldInfo );
163
160
}
@@ -166,14 +163,16 @@ public ResourceKey<LevelStem> getTypeKey() {
166
163
this .biomeProvider = craftBridge .bridge$consumeBiomeProviderCache (worldInfo .getLevelName ());
167
164
this .generator = craftBridge .bridge$consumeGeneratorCache (worldInfo .getLevelName ());
168
165
169
- if (instance .type () == LevelStem .OVERWORLD ) {
166
+ if (instance .type (). is ( LevelStem .OVERWORLD . location ()) ) {
170
167
this .environment = World .Environment .NORMAL ;
171
- } else if (instance .type () == LevelStem .NETHER ) {
168
+ } else if (instance .type (). is ( LevelStem .NETHER . location ()) ) {
172
169
this .environment = World .Environment .NETHER ;
173
- } else if (instance .type () == LevelStem .END ) {
170
+ } else if (instance .type (). is ( LevelStem .END . location ()) ) {
174
171
this .environment = World .Environment .THE_END ;
175
172
} else {
176
- this .environment = World .Environment .CUSTOM ;
173
+ // Don't use CUSTOM; it's not even supported in Multiverse
174
+ // this.environment = World.Environment.CUSTOM;
175
+ this .environment = World .Environment .NORMAL ;
177
176
}
178
177
// Data needed by getWorld() are all initialized for possible creating CraftWorld.
179
178
// CraftBukkit start: select custom chunk generator
0 commit comments