diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-04-07 06:50:16 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@Dinnerbone-Ubuntu.(none)> | 2011-04-07 06:51:36 +0100 |
commit | 13218f55e4e4c1815a2d46c497497edf116a4661 (patch) | |
tree | b3a46738468bb13ef5c11673fa8542221688224a /src | |
parent | 3c9944237a06a3865a37637777825852425f9bd8 (diff) | |
download | craftbukkit-13218f55e4e4c1815a2d46c497497edf116a4661.tar craftbukkit-13218f55e4e4c1815a2d46c497497edf116a4661.tar.gz craftbukkit-13218f55e4e4c1815a2d46c497497edf116a4661.tar.lz craftbukkit-13218f55e4e4c1815a2d46c497497edf116a4661.tar.xz craftbukkit-13218f55e4e4c1815a2d46c497497edf116a4661.zip |
Fixed a crash in pitch/yaw calculation, probably a big improvement performance too (but then maybe not :D)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/Entity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java index 94e8d019..f574071d 100644 --- a/src/main/java/net/minecraft/server/Entity.java +++ b/src/main/java/net/minecraft/server/Entity.java @@ -144,8 +144,8 @@ public abstract class Entity { } protected void c(float f, float f1) { - this.yaw = f; - this.pitch = f1; + this.yaw = f % 360f; + this.pitch = f1 % 360f; } public void a(double d0, double d1, double d2) { |