From 13218f55e4e4c1815a2d46c497497edf116a4661 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Thu, 7 Apr 2011 06:50:16 +0100 Subject: [PATCH] Fixed a crash in pitch/yaw calculation, probably a big improvement performance too (but then maybe not :D) --- src/main/java/net/minecraft/server/Entity.java | 4 ++-- 1 file 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 94e8d019c8..f574071d6f 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) {