mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
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:
parent
24d82e562a
commit
dd715a9c8a
@ -212,14 +212,12 @@ import java.util.Set;
|
|||||||
|
|
||||||
public static Location getLocation(@NonNull final org.bukkit.Location location) {
|
public static Location getLocation(@NonNull final org.bukkit.Location location) {
|
||||||
return new Location(location.getWorld().getName(), MathMan.roundInt(location.getX()),
|
return new Location(location.getWorld().getName(), MathMan.roundInt(location.getX()),
|
||||||
MathMan.roundInt(location.getY()), MathMan.roundInt(location.getZ()),
|
MathMan.roundInt(location.getY()), MathMan.roundInt(location.getZ()));
|
||||||
location.getYaw(), location.getPitch());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static org.bukkit.Location getLocation(@NonNull final Location location) {
|
public static org.bukkit.Location getLocation(@NonNull final Location location) {
|
||||||
return new org.bukkit.Location(getWorld(location.getWorld()), location.getX(),
|
return new org.bukkit.Location(getWorld(location.getWorld()), location.getX(),
|
||||||
location.getY(), location.getZ(),
|
location.getY(), location.getZ());
|
||||||
location.getYaw(), location.getPitch());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static World getWorld(@NonNull final String string) {
|
public static World getWorld(@NonNull final String string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user