Tune the teleport methods.

This commit is contained in:
Eric Stokes 2011-07-30 21:28:59 -06:00
parent c78e11bf52
commit 3ccc08b9e5
3 changed files with 3 additions and 5 deletions

View File

@ -175,8 +175,6 @@ public class MVTeleport {
public boolean safelyTeleport(Entity e, Location l) {
if (this.bs.playerCanSpawnHereSafely(l)) {
l.setX(l.getBlockX() + .5);
l.setZ(l.getBlockZ() + .5);
e.teleport(l);
// System.out.print("The first location you gave me was safe!");
return true;

View File

@ -16,8 +16,6 @@ public abstract class MultiverseCommand extends Command {
}
@Override
public void runCommand(CommandSender sender, List<String> args) {
}
public abstract void runCommand(CommandSender sender, List<String> args);
}

View File

@ -44,7 +44,9 @@ public class WorldDestination extends Destination {
if (this.yaw >= 0) {
// Only modify the yaw if its set.
spawnLoc.setYaw(this.yaw);
}
spawnLoc.add(.5, 0, .5);
return spawnLoc;
}