1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-14 18:44:48 +02:00

Round up Y position when standing on half blocks. This should address some safelogin bugs.

This commit is contained in:
KHobbits
2013-10-20 02:25:11 +01:00
parent d95289a433
commit 251aa6e768

View File

@@ -325,7 +325,7 @@ public class LocationUtil
{
final World world = loc.getWorld();
final int x = loc.getBlockX();
int y = loc.getBlockY();
int y = (int)Math.round(loc.getY());
final int z = loc.getBlockZ();
while (LocationUtil.isBlockUnsafe(world, x, y, z) && y > -1)
{