summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-10-20 02:25:11 +0100
committerKHobbits <rob@khobbits.co.uk>2013-10-20 02:25:11 +0100
commit2538618835cc1c7797d8630e4139581d433b5a28 (patch)
tree9a02b043f5c243ade06ca0ae5fb325b99bccb850
parent2284b0f45e1c3f32318d4c9654e4dd0191f50e61 (diff)
downloadEssentials-2538618835cc1c7797d8630e4139581d433b5a28.tar
Essentials-2538618835cc1c7797d8630e4139581d433b5a28.tar.gz
Essentials-2538618835cc1c7797d8630e4139581d433b5a28.tar.lz
Essentials-2538618835cc1c7797d8630e4139581d433b5a28.tar.xz
Essentials-2538618835cc1c7797d8630e4139581d433b5a28.zip
Round up Y position when standing on half blocks. This should address some safelogin bugs.
-rw-r--r--Essentials/src/com/earth2me/essentials/utils/LocationUtil.java2
1 files changed, 1 insertions, 1 deletions
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)
{