SPIGOT-5437: Fix CustomChunkGenerator.CustomBiomeGrid ignoring the y value for biomes

By: BlackHole <black-hole@live.com>
This commit is contained in:
CraftBukkit/Spigot 2019-12-11 19:41:21 +01:00
parent 2667479a6d
commit 30f1448618

View file

@ -67,12 +67,12 @@ public class CustomChunkGenerator extends InternalChunkGenerator<GeneratorSettin
@Override
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
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));
}
}