Skip to content

Commit

Permalink
update to 1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Dec 8, 2024
1 parent cea3946 commit 0834adb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/java/me/hsgamer/morefoworld/WorldUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public static FeedbackWorld addWorld(WorldCreator creator) {
PrimaryLevelData worlddata;
WorldLoader.DataLoadContext worldloader_a = console.worldLoader;
RegistryAccess.Frozen iregistrycustom_dimension = worldloader_a.datapackDimensions();
net.minecraft.core.Registry<LevelStem> iregistry = iregistrycustom_dimension.registryOrThrow(Registries.LEVEL_STEM);
net.minecraft.core.Registry<LevelStem> iregistry = iregistrycustom_dimension.lookupOrThrow(Registries.LEVEL_STEM);
if (dynamic != null) {
LevelDataAndDimensions leveldataanddimensions = LevelStorageSource.getLevelDataAndDimensions(dynamic, worldloader_a.dataConfiguration(), iregistry, worldloader_a.datapackWorldgen());

Expand All @@ -170,7 +170,7 @@ public static FeedbackWorld addWorld(WorldCreator creator) {

DedicatedServerProperties.WorldDimensionData properties = new DedicatedServerProperties.WorldDimensionData(GsonHelper.parse((creator.generatorSettings().isEmpty()) ? "{}" : creator.generatorSettings()), creator.type().name().toLowerCase(Locale.ROOT));

worldsettings = new LevelSettings(name, getGameType(GameMode.SURVIVAL), hardcore, Difficulty.EASY, false, new GameRules(), worldloader_a.dataConfiguration());
worldsettings = new LevelSettings(name, getGameType(GameMode.SURVIVAL), hardcore, Difficulty.EASY, false, new GameRules(worldloader_a.dataConfiguration().enabledFeatures()), worldloader_a.dataConfiguration());
worlddimensions = properties.create(worldloader_a.datapackWorldgen());

WorldDimensions.Complete worlddimensions_b = worlddimensions.bake(iregistry);
Expand All @@ -179,14 +179,14 @@ public static FeedbackWorld addWorld(WorldCreator creator) {
worlddata = new PrimaryLevelData(worldsettings, worldoptions, worlddimensions_b.specialWorldProperty(), lifecycle);
iregistrycustom_dimension = worlddimensions_b.dimensionsRegistryAccess();
}
iregistry = iregistrycustom_dimension.registryOrThrow(Registries.LEVEL_STEM);
iregistry = iregistrycustom_dimension.lookupOrThrow(Registries.LEVEL_STEM);
worlddata.customDimensions = iregistry;
worlddata.checkName(name);
worlddata.setModdedInfo(console.getServerModName(), console.getModdedStatus().shouldReportAsModified());

long j = BiomeManager.obfuscateSeed(worlddata.worldGenOptions().seed());
List<CustomSpawner> list = ImmutableList.of(new PhantomSpawner(), new PatrolSpawner(), new CatSpawner(), new VillageSiege(), new WanderingTraderSpawner(worlddata));
LevelStem worlddimension = iregistry.get(actualDimension);
LevelStem worlddimension = iregistry.getValue(actualDimension);

WorldInfo worldInfo = new CraftWorldInfo(worlddata, worldSession, creator.environment(), worlddimension.type().value(), worlddimension.generator(), console.registryAccess());
if (biomeProvider == null && generator != null) {
Expand Down Expand Up @@ -222,7 +222,7 @@ public static FeedbackWorld addWorld(WorldCreator creator) {
}
}

internal.setSpawnSettings(true, true);
internal.setSpawnSettings(true);

console.prepareLevels(internal.getChunkSource().chunkMap.progressListener, internal);
io.papermc.paper.threadedregions.RegionizedServer.getInstance().addWorld(internal);
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21.1
1.21.4

0 comments on commit 0834adb

Please sign in to comment.