SPIGOT-5422: Add support for 3-dimensional biomes

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-12-11 15:28:37 +11:00
parent 41210f86bb
commit 7dbf1ee072
5 changed files with 83 additions and 81 deletions

View File

@@ -473,12 +473,12 @@ public class CraftBlock implements Block {
@Override
public Biome getBiome() {
return getWorld().getBiome(getX(), getZ());
return getWorld().getBiome(getX(), getY(), getZ());
}
@Override
public void setBiome(Biome bio) {
getWorld().setBiome(getX(), getZ(), bio);
getWorld().setBiome(getX(), getY(), getZ(), bio);
}
public static Biome biomeBaseToBiome(BiomeBase base) {
@@ -504,7 +504,7 @@ public class CraftBlock implements Block {
@Override
public double getHumidity() {
return getWorld().getHumidity(getX(), getZ());
return getWorld().getHumidity(getX(), getY(), getZ());
}
@Override