[Fix] Biomes from Terrablender have no features
This commit is contained in:
parent
e49323be93
commit
bb08368511
1 changed files with 15 additions and 10 deletions
|
@ -76,6 +76,12 @@ public class BCLChunkGenerator extends NoiseBasedChunkGenerator {
|
||||||
|
|
||||||
//terrablender is completley invalidating the feature imitialization
|
//terrablender is completley invalidating the feature imitialization
|
||||||
//we redo it at this point, otherwise we will get blank biomes
|
//we redo it at this point, otherwise we will get blank biomes
|
||||||
|
rebuildFeaturesPerStep(biomeSource);
|
||||||
|
}
|
||||||
|
System.out.println("Chunk Generator: " + this + " (biomeSource: " + biomeSource + ")");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void rebuildFeaturesPerStep(BiomeSource biomeSource) {
|
||||||
if (this instanceof ChunkGeneratorAccessor acc) {
|
if (this instanceof ChunkGeneratorAccessor acc) {
|
||||||
Function<Holder<Biome>, BiomeGenerationSettings> function = (Holder<Biome> hh) -> hh.value()
|
Function<Holder<Biome>, BiomeGenerationSettings> function = (Holder<Biome> hh) -> hh.value()
|
||||||
.getGenerationSettings();
|
.getGenerationSettings();
|
||||||
|
@ -87,8 +93,6 @@ public class BCLChunkGenerator extends NoiseBasedChunkGenerator {
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println("Chunk Generator: " + this + " (biomeSource: " + biomeSource + ")");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void restoreInitialBiomeSource() {
|
public void restoreInitialBiomeSource() {
|
||||||
if (initialBiomeSource != getBiomeSource()) {
|
if (initialBiomeSource != getBiomeSource()) {
|
||||||
|
@ -96,6 +100,7 @@ public class BCLChunkGenerator extends NoiseBasedChunkGenerator {
|
||||||
BiomeSource bs = LevelGenUtil.getWorldSettings()
|
BiomeSource bs = LevelGenUtil.getWorldSettings()
|
||||||
.fixBiomeSource(initialBiomeSource, getBiomeSource().possibleBiomes());
|
.fixBiomeSource(initialBiomeSource, getBiomeSource().possibleBiomes());
|
||||||
acc.bcl_setBiomeSource(bs);
|
acc.bcl_setBiomeSource(bs);
|
||||||
|
rebuildFeaturesPerStep(getBiomeSource());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue