Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Update trySetPosition
Dieser Commit ist enthalten in:
Ursprung
4c299bc0b8
Commit
2a493ac9c6
@ -194,7 +194,7 @@ public class BukkitPlayer extends AbstractPlayerActor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void trySetPosition(Vector3 pos, float pitch, float yaw) {
|
public boolean trySetPosition(Vector3 pos, float pitch, float yaw) {
|
||||||
org.bukkit.World world = player.getWorld();
|
org.bukkit.World world = player.getWorld();
|
||||||
if (pos instanceof com.sk89q.worldedit.util.Location) {
|
if (pos instanceof com.sk89q.worldedit.util.Location) {
|
||||||
com.sk89q.worldedit.util.Location loc = (com.sk89q.worldedit.util.Location) pos;
|
com.sk89q.worldedit.util.Location loc = (com.sk89q.worldedit.util.Location) pos;
|
||||||
@ -203,7 +203,7 @@ public class BukkitPlayer extends AbstractPlayerActor {
|
|||||||
world = Bukkit.getWorld(((World) extent).getName());
|
world = Bukkit.getWorld(((World) extent).getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.teleport(new Location(world, pos.getX(), pos.getY(), pos.getZ(), yaw, pitch));
|
return player.teleport(new Location(world, pos.getX(), pos.getY(), pos.getZ(), yaw, pitch));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren