mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-29 14:06:30 +01:00
Tune the teleport methods.
This commit is contained in:
parent
c78e11bf52
commit
3ccc08b9e5
@ -175,8 +175,6 @@ public class MVTeleport {
|
|||||||
|
|
||||||
public boolean safelyTeleport(Entity e, Location l) {
|
public boolean safelyTeleport(Entity e, Location l) {
|
||||||
if (this.bs.playerCanSpawnHereSafely(l)) {
|
if (this.bs.playerCanSpawnHereSafely(l)) {
|
||||||
l.setX(l.getBlockX() + .5);
|
|
||||||
l.setZ(l.getBlockZ() + .5);
|
|
||||||
e.teleport(l);
|
e.teleport(l);
|
||||||
// System.out.print("The first location you gave me was safe!");
|
// System.out.print("The first location you gave me was safe!");
|
||||||
return true;
|
return true;
|
||||||
|
@ -16,8 +16,6 @@ public abstract class MultiverseCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void runCommand(CommandSender sender, List<String> args) {
|
public abstract void runCommand(CommandSender sender, List<String> args);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,9 @@ public class WorldDestination extends Destination {
|
|||||||
if (this.yaw >= 0) {
|
if (this.yaw >= 0) {
|
||||||
// Only modify the yaw if its set.
|
// Only modify the yaw if its set.
|
||||||
spawnLoc.setYaw(this.yaw);
|
spawnLoc.setYaw(this.yaw);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
spawnLoc.add(.5, 0, .5);
|
||||||
return spawnLoc;
|
return spawnLoc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user