25 lines
875 B
Diff
25 lines
875 B
Diff
|
From ff4ee42a168c7990c2d39e7a19adfc14496182bd Mon Sep 17 00:00:00 2001
|
||
|
From: libraryaddict <libraryaddict115@yahoo.co.nz>
|
||
|
Date: Thu, 22 Oct 2015 05:50:51 +1300
|
||
|
Subject: [PATCH] Set aK field on LivingEntity spawn to do facing direction
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
||
|
index ee19bd6..f940b45 100644
|
||
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
||
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
||
|
@@ -1011,6 +1011,10 @@ public abstract class Entity implements ICommandListener {
|
||
|
this.lastZ = this.locZ = d2;
|
||
|
this.lastYaw = this.yaw = f;
|
||
|
this.lastPitch = this.pitch = f1;
|
||
|
+
|
||
|
+ if (this instanceof EntityLiving)
|
||
|
+ ((EntityLiving) this).aK = f;
|
||
|
+
|
||
|
double d3 = (double) (this.lastYaw - f);
|
||
|
|
||
|
if (d3 < -180.0D) {
|
||
|
--
|
||
|
1.9.5.msysgit.0
|
||
|
|