summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-11-09 13:07:25 +1100
committermd_5 <git@md-5.net>2017-11-09 13:07:25 +1100
commit326c2e605ff591232c7f3372299cddaa1513dd9b (patch)
treecca88d7238d4b2f69ec4b6c78d9608c277b4ecc0
parent305df9035faeda09b14f923dc44bdd550d9c9000 (diff)
downloadcraftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.tar
craftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.tar.gz
craftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.tar.lz
craftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.tar.xz
craftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.zip
SPIGOT-3644: Fix missed yaw callsite update
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
index 8477337b..7739a3e4 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
@@ -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) {