mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-14 20:21:50 +01:00
Safe location fix:
x and z needs floor, while y should be round.
This commit is contained in:
parent
3b9aa445e9
commit
16111b56ad
@ -266,9 +266,9 @@ public class Util
|
|||||||
throw new Exception(Util.i18n("destinationNotSet"));
|
throw new Exception(Util.i18n("destinationNotSet"));
|
||||||
}
|
}
|
||||||
final World world = loc.getWorld();
|
final World world = loc.getWorld();
|
||||||
int x = (int)Math.round(loc.getX());
|
int x = loc.getBlockX();
|
||||||
int y = (int)Math.round(loc.getY());
|
int y = (int)Math.round(loc.getY());
|
||||||
int z = (int)Math.round(loc.getZ());
|
int z = loc.getBlockZ();
|
||||||
|
|
||||||
while (isBlockAboveAir(world, x, y, z))
|
while (isBlockAboveAir(world, x, y, z))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user