Fix placement of negative section biomes

This commit is contained in:
themode 2021-12-20 01:07:27 +01:00 committed by TheMode
parent b17c66e339
commit 9174742429
2 changed files with 5 additions and 3 deletions

View File

@ -87,8 +87,10 @@ public class DynamicChunk extends Chunk {
public void setBiome(int x, int y, int z, @NotNull Biome biome) { public void setBiome(int x, int y, int z, @NotNull Biome biome) {
this.chunkCache.invalidate(); this.chunkCache.invalidate();
Section section = getSectionAt(y); Section section = getSectionAt(y);
section.biomePalette() section.biomePalette().set(
.set(toChunkRelativeCoordinate(x) / 4, y / 4, toChunkRelativeCoordinate(z) / 4, biome.id()); toChunkRelativeCoordinate(x) / 4,
toChunkRelativeCoordinate(y) / 4,
toChunkRelativeCoordinate(z) / 4, biome.id());
} }
@Override @Override