Fix crash when generating flat world ()

(cherry picked from commit be5d88be99)
This commit is contained in:
apple502j 2024-04-28 23:55:49 +09:00 committed by modmuss50
parent bbb1ae028e
commit db2ee42454

View file

@ -160,7 +160,7 @@ public class BiomeModificationImpl {
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
)
);