3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-24 18:10:08 +01:00

Update trySetPosition

Dieser Commit ist enthalten in:
MattBDev 2020-07-13 13:09:03 -04:00
Ursprung 4c299bc0b8
Commit 2a493ac9c6

Datei anzeigen

@ -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