mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
SPIGOT-5437: Fix CustomChunkGenerator.CustomBiomeGrid ignoring the y value for biomes
This commit is contained in:
parent
f777640e48
commit
beff9fb9dd
1 changed files with 2 additions and 2 deletions
|
@ -67,12 +67,12 @@ public class CustomChunkGenerator extends InternalChunkGenerator<GeneratorSettin
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Biome getBiome(int x, int y, int z) {
|
public Biome getBiome(int x, int y, int z) {
|
||||||
return CraftBlock.biomeBaseToBiome(biome.getBiome(x, 0, z));
|
return CraftBlock.biomeBaseToBiome(biome.getBiome(x, y, z));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setBiome(int x, int y, int z, Biome bio) {
|
public void setBiome(int x, int y, int z, Biome bio) {
|
||||||
biome.setBiome(x, 0, z, CraftBlock.biomeToBiomeBase(bio));
|
biome.setBiome(x, y, z, CraftBlock.biomeToBiomeBase(bio));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue