mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-04 06:21:35 +01:00
parent
c45c741210
commit
d091d6902c
@ -267,7 +267,7 @@ public final class LocationUtil {
|
||||
int y = (int) Math.round(loc.getY());
|
||||
final int z = loc.getBlockZ();
|
||||
int count = 0;
|
||||
while (LocationUtil.isBlockUnsafe(ess, world, x, y, z) && y > -1) {
|
||||
while (LocationUtil.isBlockUnsafe(ess, world, x, y, z) && y >= ess.getWorldInfoProvider().getMinHeight(world)) {
|
||||
y--;
|
||||
count++;
|
||||
if (count > 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user