mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-04 14:31:26 +01:00
parent
c45c741210
commit
d091d6902c
@ -267,7 +267,7 @@ public final class LocationUtil {
|
|||||||
int y = (int) Math.round(loc.getY());
|
int y = (int) Math.round(loc.getY());
|
||||||
final int z = loc.getBlockZ();
|
final int z = loc.getBlockZ();
|
||||||
int count = 0;
|
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--;
|
y--;
|
||||||
count++;
|
count++;
|
||||||
if (count > 2) {
|
if (count > 2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user