diff --git a/src/main/java/com/sk89q/worldedit/bukkit/BukkitUtil.java b/src/main/java/com/sk89q/worldedit/bukkit/BukkitUtil.java index 05307ab66..c3c2c09ba 100644 --- a/src/main/java/com/sk89q/worldedit/bukkit/BukkitUtil.java +++ b/src/main/java/com/sk89q/worldedit/bukkit/BukkitUtil.java @@ -137,12 +137,12 @@ public static boolean equals(org.bukkit.Location a, org.bukkit.Location b) { public static final double EQUALS_PRECISION = 0.0001; - public static org.bukkit.Location toLocation(Location teleportLocation) { - Vector pt = teleportLocation.getPosition(); + public static org.bukkit.Location toLocation(Location location) { + Vector pt = location.getPosition(); return new org.bukkit.Location( - toWorld(teleportLocation.getWorld()), + toWorld(location.getWorld()), pt.getX(), pt.getY(), pt.getZ(), - teleportLocation.getYaw(), teleportLocation.getPitch() + location.getYaw(), location.getPitch() ); }