mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Fix inaccurate head yaw. Fixes BUKKIT-1702
This commit is contained in:
parent
fdddc681d2
commit
8be14b5bb3
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
if (this.tracker instanceof EntityLiving) {
|
||||||
EntityLiving entityliving = (EntityLiving) this.tracker;
|
EntityLiving entityliving = (EntityLiving) this.tracker;
|
||||||
Iterator iterator = entityliving.getEffects().iterator();
|
Iterator iterator = entityliving.getEffects().iterator();
|
||||||
|
|
Loading…
Reference in a new issue