1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-06 14:46:32 +02:00

Safe location fix:

x and z needs floor, while y should be round.
This commit is contained in:
KHobbits
2011-10-03 09:58:46 +01:00
parent 786dcae29e
commit b9e3e5f7e5

View File

@@ -266,9 +266,9 @@ public class Util
throw new Exception(Util.i18n("destinationNotSet"));
}
final World world = loc.getWorld();
int x = (int)Math.round(loc.getX());
int x = loc.getBlockX();
int y = (int)Math.round(loc.getY());
int z = (int)Math.round(loc.getZ());
int z = loc.getBlockZ();
while (isBlockAboveAir(world, x, y, z))
{