From b1d422ba8f42d240dc02f9ce14d3947e5cd73b58 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 20 Oct 2013 02:25:11 +0100 Subject: Round up Y position when standing on half blocks. This should address some safelogin bugs. --- Essentials/src/com/earth2me/essentials/utils/LocationUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java b/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java index 3f5f9d66d..35754786b 100644 --- a/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java +++ b/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java @@ -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) { -- cgit v1.2.3