From dd715a9c8a8fe3f842237d1237edf3f0cbc4fc08 Mon Sep 17 00:00:00 2001 From: mindw0rm Date: Fri, 18 Oct 2019 07:51:01 +0200 Subject: [PATCH] Revert "copy yaw and pitch when converting between Bukkit Location and PlotSquared Location" Undo this since I can't guarantee that there aren't side effects. --- .../plotsquared/bukkit/util/BukkitUtil.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java index 06eb60cd7..ebf67e075 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java @@ -212,14 +212,12 @@ import java.util.Set; public static Location getLocation(@NonNull final org.bukkit.Location location) { return new Location(location.getWorld().getName(), MathMan.roundInt(location.getX()), - MathMan.roundInt(location.getY()), MathMan.roundInt(location.getZ()), - location.getYaw(), location.getPitch()); + MathMan.roundInt(location.getY()), MathMan.roundInt(location.getZ())); } public static org.bukkit.Location getLocation(@NonNull final Location location) { return new org.bukkit.Location(getWorld(location.getWorld()), location.getX(), - location.getY(), location.getZ(), - location.getYaw(), location.getPitch()); + location.getY(), location.getZ()); } public static World getWorld(@NonNull final String string) {