Small fix
This commit is contained in:
parent
8abf92eca7
commit
3cb78dd5a5
1 changed files with 1 additions and 1 deletions
|
@ -904,7 +904,7 @@ public class BiomeAPI {
|
||||||
public static void setBiome(ChunkAccess chunk, BlockPos pos, Biome biome) {
|
public static void setBiome(ChunkAccess chunk, BlockPos pos, Biome biome) {
|
||||||
int sectionY = (pos.getY() - chunk.getMinBuildHeight()) >> 4;
|
int sectionY = (pos.getY() - chunk.getMinBuildHeight()) >> 4;
|
||||||
PalettedContainer<Biome> biomes = chunk.getSection(sectionY).getBiomes();
|
PalettedContainer<Biome> biomes = chunk.getSection(sectionY).getBiomes();
|
||||||
biomes.set(pos.getX() & 15, pos.getY() & 15, pos.getZ() & 15, biome);
|
biomes.set((pos.getX() & 15) >> 2, (pos.getY() & 15) >> 2, (pos.getZ() & 15) >> 2, biome);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue