mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-3644: Fix missed yaw callsite update
By: md_5 <git@md-5.net>
This commit is contained in:
parent
4a0e197bb8
commit
d87e31cf51
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||
}
|
||||
|
||||
public Location getLocation() {
|
||||
return new Location(getWorld(), entity.locX, entity.locY, entity.locZ, entity instanceof EntityLiving ? entity.getHeadRotation() : entity.yaw, entity.pitch);
|
||||
return new Location(getWorld(), entity.locX, entity.locY, entity.locZ, entity.getBukkitYaw(), entity.pitch);
|
||||
}
|
||||
|
||||
public Location getLocation(Location loc) {
|
||||
|
|
Loading…
Reference in a new issue