mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-27 08:50:35 +01:00
Fix entities traveling sideways. Addresses BUKKIT-3443
Original: Update mappings to correct 1.4.6 version.
This commit is contained in:
parent
ccbd3d84e8
commit
b581068464
1 changed files with 2 additions and 2 deletions
|
@ -123,8 +123,8 @@ public abstract class EntityCreature extends EntityLiving {
|
||||||
|
|
||||||
this.yaw = (float) (Math.atan2(d5, d4) * 180.0D / 3.1415927410125732D) - 90.0F;
|
this.yaw = (float) (Math.atan2(d5, d4) * 180.0D / 3.1415927410125732D) - 90.0F;
|
||||||
f3 = (f4 - this.yaw + 90.0F) * 3.1415927F / 180.0F;
|
f3 = (f4 - this.yaw + 90.0F) * 3.1415927F / 180.0F;
|
||||||
this.bC = -MathHelper.sin(f3) * this.bC * 1.0F;
|
this.bC = -MathHelper.sin(f3) * this.bD * 1.0F;
|
||||||
this.bD = MathHelper.cos(f3) * this.bC * 1.0F;
|
this.bD = MathHelper.cos(f3) * this.bD * 1.0F;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d3 > 0.0D) {
|
if (d3 > 0.0D) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue