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.
This commit is contained in:
mindw0rm 2019-10-18 07:51:01 +02:00
parent 24d82e562a
commit dd715a9c8a

View File

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