1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-04-13 01:14:37 +02:00

Fixed world.getHighestBlockYAt(x,z) returning 0 for existing but not loaded chunks. This fixes BUKKIT-327. Thanks for dredhorse for the pull request!

This commit is contained in:
Nathan Adams 2011-12-19 16:30:26 +00:00
parent bea7b1373e
commit 246d07482b

View file

@ -74,6 +74,10 @@ public class CraftWorld implements World {
}
public int getHighestBlockYAt(int x, int z) {
if (!isChunkLoaded(x >> 4, z >> 4)){
loadChunk(x >> 4, z >> 4);
}
return world.getHighestBlockYAt(x, z);
}