mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-23 21:40:02 -04:00
Fix biome modification for modded end biomes (#2365)
This commit is contained in:
parent
489d6f824d
commit
651bcc5952
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
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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"))
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue