Fix biome modification for modded end biomes ()

This commit is contained in:
apple502j 2022-06-29 03:26:04 +09:00 committed by GitHub
parent 489d6f824d
commit 651bcc5952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions
fabric-biome-api-v1/src
main/java/net/fabricmc/fabric/impl/biome/modification
testmod/java/net/fabricmc/fabric/test/biome

View file

@ -170,7 +170,8 @@ public class BiomeModificationImpl {
// Replace the Supplier to force it to rebuild on next call
biomeSource.indexedFeaturesSupplier = Suppliers.memoize(() -> {
return biomeSource.method_39525(biomeSource.biomes.stream().distinct().toList(), true);
// Using getBiomes to allow MixinBiomeSource to work
return biomeSource.method_39525(biomeSource.getBiomes().stream().distinct().toList(), true);
});
}

View file

@ -116,7 +116,7 @@ public class FabricBiomeTest implements ModInitializer {
// Make sure data packs can define dynamic registry contents
// See #2225, #2261
BiomeModifications.addFeature(
BiomeSelectors.foundInOverworld(),
BiomeSelectors.foundInOverworld().or(BiomeSelectors.foundInTheEnd()),
GenerationStep.Feature.VEGETAL_DECORATION,
RegistryKey.of(Registry.PLACED_FEATURE_KEY, new Identifier(MOD_ID, "concrete_pile"))
);