From b581068464e55f4ff6c45b0a532d0279d7c152e4 Mon Sep 17 00:00:00 2001 From: bloodmc Date: Mon, 14 Jan 2013 14:02:10 -0500 Subject: [PATCH] Fix entities traveling sideways. Addresses BUKKIT-3443 Original: Update mappings to correct 1.4.6 version. --- src/main/java/net/minecraft/server/EntityCreature.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/EntityCreature.java b/src/main/java/net/minecraft/server/EntityCreature.java index d75c3c8729..45ee98a229 100644 --- a/src/main/java/net/minecraft/server/EntityCreature.java +++ b/src/main/java/net/minecraft/server/EntityCreature.java @@ -123,8 +123,8 @@ public abstract class EntityCreature extends EntityLiving { this.yaw = (float) (Math.atan2(d5, d4) * 180.0D / 3.1415927410125732D) - 90.0F; f3 = (f4 - this.yaw + 90.0F) * 3.1415927F / 180.0F; - this.bC = -MathHelper.sin(f3) * this.bC * 1.0F; - this.bD = MathHelper.cos(f3) * this.bC * 1.0F; + this.bC = -MathHelper.sin(f3) * this.bD * 1.0F; + this.bD = MathHelper.cos(f3) * this.bD * 1.0F; } if (d3 > 0.0D) {