Fix crash when generating flat world ()

This commit is contained in:
apple502j 2024-04-28 23:55:49 +09:00 committed by GitHub
parent a704f5c7f5
commit be5d88be99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
)
);