summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-04-07 06:50:16 +0100
committerDinnerbone <dinnerbone@Dinnerbone-Ubuntu.(none)>2011-04-07 06:51:36 +0100
commit13218f55e4e4c1815a2d46c497497edf116a4661 (patch)
treeb3a46738468bb13ef5c11673fa8542221688224a /src
parent3c9944237a06a3865a37637777825852425f9bd8 (diff)
downloadcraftbukkit-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.java4
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) {