From 2a493ac9c62e38157ddb4d408b2de05f16faa7e3 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Mon, 13 Jul 2020 13:09:03 -0400 Subject: [PATCH] Update trySetPosition --- .../main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java index 3aa49b98f..54289bd99 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java @@ -194,7 +194,7 @@ public class BukkitPlayer extends AbstractPlayerActor { } @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(); if (pos instanceof com.sk89q.worldedit.util.Location) { 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()); } } - 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