diff --git a/Essentials/src/main/java/com/earth2me/essentials/utils/LocationUtil.java b/Essentials/src/main/java/com/earth2me/essentials/utils/LocationUtil.java index 8ad5d1c12..ae84c2aa4 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/utils/LocationUtil.java +++ b/Essentials/src/main/java/com/earth2me/essentials/utils/LocationUtil.java @@ -266,6 +266,7 @@ public final class LocationUtil { int y = (int) Math.round(loc.getY()); final int z = loc.getBlockZ(); int count = 0; + // Check whether more than 2 unsafe block are below player. while (LocationUtil.isBlockUnsafe(ess, world, x, y, z) && y >= ess.getWorldInfoProvider().getMinHeight(world)) { y--; count++; @@ -274,7 +275,8 @@ public final class LocationUtil { } } - return y < 0; + // If not then check if player is in the void + return y < ess.getWorldInfoProvider().getMinHeight(world); } public static class Vector3D {