Skip to content

Commit

Permalink
Merge pull request #799 from djsimmonds/release/1.18.2
Browse files Browse the repository at this point in the history
fix heightmap assignment in DynamicTreeFeature.java
  • Loading branch information
supermassimo authored Jul 31, 2023
2 parents fae47cf + 5ea7d1c commit e12d4e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public boolean place(FeaturePlaceContext<NoneFeatureConfiguration> context) {

protected void generateTrees(LevelContext levelContext, BiomeDatabase biomeDatabase, PoissonDisc disc, BlockPos originPos, SafeChunkBounds safeBounds) {
BlockPos basePos = new BlockPos(disc.x, 0, disc.z);
Biome biome = levelContext.accessor().getBiome(originPos).value();
Biome biome = levelContext.accessor().getBiome(basePos).value();
Heightmap.Types heightmap = Heightmap.Types.valueOf(biomeDatabase.getHeightmap(biome).toUpperCase());
for (BlockPos groundPos : GroundFinder.getGroundFinder(levelContext.level()).findGround(levelContext.accessor(), basePos, heightmap)) {
BiomeDatabase.EntryReader entry = biomeDatabase.getEntry(levelContext.accessor().getBiome(groundPos).value());
Expand Down

0 comments on commit e12d4e4

Please sign in to comment.