diff options
author | Charles Daffern <seejay.11@gmail.com> | 2012-05-13 03:31:17 +0100 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-05-23 21:52:59 -0500 |
commit | 8be14b5bb3c608f5ff180725fa5a61cc01efab60 (patch) | |
tree | ff23eed96ca3e650689d3ed42a3257cce3c11367 /src/main/java/net | |
parent | fdddc681d28b6eb90420bde99d2288fe4f702b27 (diff) | |
download | craftbukkit-8be14b5bb3c608f5ff180725fa5a61cc01efab60.tar craftbukkit-8be14b5bb3c608f5ff180725fa5a61cc01efab60.tar.gz craftbukkit-8be14b5bb3c608f5ff180725fa5a61cc01efab60.tar.lz craftbukkit-8be14b5bb3c608f5ff180725fa5a61cc01efab60.tar.xz craftbukkit-8be14b5bb3c608f5ff180725fa5a61cc01efab60.zip |
Fix inaccurate head yaw. Fixes BUKKIT-1702
Diffstat (limited to 'src/main/java/net')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityTrackerEntry.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityTrackerEntry.java b/src/main/java/net/minecraft/server/EntityTrackerEntry.java index dcfc22e0..6f1496e8 100644 --- a/src/main/java/net/minecraft/server/EntityTrackerEntry.java +++ b/src/main/java/net/minecraft/server/EntityTrackerEntry.java @@ -253,6 +253,11 @@ public class EntityTrackerEntry { } } + // CraftBukkit start - Fix for nonsensical head yaw + this.i = MathHelper.d(this.tracker.ar() * 256.0F / 360.0F); + this.broadcast(new Packet35EntityHeadRotation(this.tracker.id, (byte) i)); + // CraftBukkit end + if (this.tracker instanceof EntityLiving) { EntityLiving entityliving = (EntityLiving) this.tracker; Iterator iterator = entityliving.getEffects().iterator(); |