mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 10:20:42 +01:00
Fix placement of negative section biomes
This commit is contained in:
parent
b17c66e339
commit
9174742429
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user