Skip to content

Commit

Permalink
Fix crash when generating flat world (#3741)
Browse files Browse the repository at this point in the history
(cherry picked from commit be5d88b)
  • Loading branch information
apple502j authored and modmuss50 committed Apr 28, 2024
1 parent bbb1ae0 commit db2ee42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void finalizeWorldGen(DynamicRegistryManager impl) {
dimensionOptions.chunkGenerator().indexedFeaturesListSupplier = Suppliers.memoize(
() -> PlacedFeatureIndexer.collectIndexedFeatures(
List.copyOf(dimensionOptions.chunkGenerator().getBiomeSource().getBiomes()),
(biomeEntry) -> (biomeEntry.value().generationSettings).getFeatures(),
biomeEntry -> dimensionOptions.chunkGenerator().getGenerationSettings(biomeEntry).getFeatures(),
true
)
);
Expand Down

0 comments on commit db2ee42

Please sign in to comment.