Fix biome setting in 1.15

This commit is contained in:
dordsor21 2020-05-14 16:17:29 +01:00
parent 34d40cb856
commit 5225099ec0
2 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ public class BukkitGetBlocks_1_15 extends CharGetBlocks {
final Biome craftBiome = BukkitAdapter.adapt(biome);
BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(craftBiome);
for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
currentBiomes.setBiome(x, y, z, nmsBiome);
currentBiomes.setBiome(x >> 2, y >> 2, z >> 2, nmsBiome);
}
}
}

View File

@ -340,7 +340,7 @@ public class BukkitGetBlocks_1_15_2 extends CharGetBlocks {
final Biome craftBiome = BukkitAdapter.adapt(biome);
BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(craftBiome);
for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) {
currentBiomes.setBiome(x, y, z, nmsBiome);
currentBiomes.setBiome(x >> 2, y >> 2, z >> 2, nmsBiome);
}
}
}