Skip to content

Commit 33cbf82

Browse files
committed
up
1 parent 23851fc commit 33cbf82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

KBEngine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,9 +2006,9 @@ public void Client_onSetEntityPosAndDir(MemoryStream stream)
20062006
entity.position.y = stream.readFloat();
20072007
entity.position.z = stream.readFloat();
20082008

2009-
entity.direction.z = KBEMath.int82angle((SByte)stream.readFloat(), false) * 360 / ((float)System.Math.PI * 2);
2010-
entity.direction.y = KBEMath.int82angle((SByte)stream.readFloat(), false) * 360 / ((float)System.Math.PI * 2);
20112009
entity.direction.x = KBEMath.int82angle((SByte)stream.readFloat(), false) * 360 / ((float)System.Math.PI * 2);
2010+
entity.direction.y = KBEMath.int82angle((SByte)stream.readFloat(), false) * 360 / ((float)System.Math.PI * 2);
2011+
entity.direction.z = KBEMath.int82angle((SByte)stream.readFloat(), false) * 360 / ((float)System.Math.PI * 2);
20122012

20132013
Vector3 position = (Vector3)entity.getDefinedPropterty("position");
20142014
Vector3 direction = (Vector3)entity.getDefinedPropterty("direction");

0 commit comments

Comments
 (0)