File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments