13
0
geforkt von Mirrors/Paper

SPIGOT-5558: Fix World#getHighestBlockAt, previously off by +1

By: ysl3000 <yannicklamprecht@live.de>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2020-02-03 09:42:48 +11:00
Ursprung 9adbf6f88b
Commit 4eb5ed272f

Datei anzeigen

@ -291,11 +291,8 @@ public class CraftWorld implements World {
@Override
public int getHighestBlockYAt(int x, int z) {
if (!isChunkLoaded(x >> 4, z >> 4)) {
getChunkAt(x >> 4, z >> 4); // Transient load for this tick
}
return world.getHighestBlockYAt(HeightMap.Type.MOTION_BLOCKING, new BlockPosition(x, 0, z)).getY();
// Transient load for this tick
return world.getChunkAt(x >> 4, z >> 4).a(HeightMap.Type.MOTION_BLOCKING, x, z);
}
@Override