mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
parent
d19cd1ac56
commit
66e3cb1837
1 changed files with 4 additions and 2 deletions
|
@ -15,8 +15,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
List<CustomSpawner> list = ImmutableList.of(new PhantomSpawner(), new PatrolSpawner(), new CatSpawner(), new VillageSiege(), new WanderingTraderSpawner(iworlddataserver));
|
||||
- LevelStem worlddimension = (LevelStem) registrymaterials.get(dimensionKey);
|
||||
+ // Paper start - Use correct LevelStem registry
|
||||
+ LevelStem worlddimension = generatorsettings.dimensions().get(dimensionKey);
|
||||
+ if (worlddimension == null) {
|
||||
+ final LevelStem worlddimension;
|
||||
+ if (dimensionKey == LevelStem.END || dimensionKey == LevelStem.NETHER) {
|
||||
+ worlddimension = generatorsettings.dimensions().get(dimensionKey);
|
||||
+ } else {
|
||||
+ worlddimension = registrymaterials.get(dimensionKey);
|
||||
+ }
|
||||
+ // Paper end
|
||||
|
|
Loading…
Reference in a new issue