summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbloodmc <jdroque@gmail.com>2013-01-14 14:02:10 -0500
committerfeildmaster <admin@feildmaster.com>2013-01-16 23:05:18 -0600
commitb581068464e55f4ff6c45b0a532d0279d7c152e4 (patch)
tree2f895c87d1e6f70a08f0bf850e47818cbc9a0511 /src
parentccbd3d84e82e840ed46e2069ea5bac83d8de1551 (diff)
downloadcraftbukkit-b581068464e55f4ff6c45b0a532d0279d7c152e4.tar
craftbukkit-b581068464e55f4ff6c45b0a532d0279d7c152e4.tar.gz
craftbukkit-b581068464e55f4ff6c45b0a532d0279d7c152e4.tar.lz
craftbukkit-b581068464e55f4ff6c45b0a532d0279d7c152e4.tar.xz
craftbukkit-b581068464e55f4ff6c45b0a532d0279d7c152e4.zip
Fix entities traveling sideways. Addresses BUKKIT-3443
Original: Update mappings to correct 1.4.6 version.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/EntityCreature.java4
1 files 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 d75c3c87..45ee98a2 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) {