diff options
author | md_5 <git@md-5.net> | 2017-11-09 13:07:25 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-11-09 13:07:25 +1100 |
commit | 326c2e605ff591232c7f3372299cddaa1513dd9b (patch) | |
tree | cca88d7238d4b2f69ec4b6c78d9608c277b4ecc0 /src/main/java | |
parent | 305df9035faeda09b14f923dc44bdd550d9c9000 (diff) | |
download | craftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.tar craftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.tar.gz craftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.tar.lz craftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.tar.xz craftbukkit-326c2e605ff591232c7f3372299cddaa1513dd9b.zip |
SPIGOT-3644: Fix missed yaw callsite update
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 |
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) { |