more cleanup

This commit is contained in:
GameHerobrine 2022-12-31 23:47:20 +03:00
parent 2573e4f90d
commit 83b2bf5df1
8 changed files with 1 additions and 18 deletions

View file

@ -5,7 +5,7 @@ class Pythagoras3D implements IDistanceAlgorithm
public function calculate(PathTile $from, PathTile $to)
{
if($from instanceof PathTileXYZ && $to instanceof PathTileXYZ){
return Utils::distance_noroot($from->asVector(), $to->asVector());
return Utils::distance($from->asArray(), $to->asArray());
}
return 666;
}

View file

@ -1,13 +0,0 @@
<?php
abstract class WalkingEntity extends Entity{
/**
* @param int $tickDiff
*
* @return null|Vector3
*/
}

View file

@ -15,10 +15,6 @@ abstract class ProtocolInfo{
const CLIENT_HANDSHAKE_PACKET = 0x13;
//const SERVER_FULL_PACKET = 0x14;
const DISCONNECT_PACKET = 0x15;
//const BANNED_PACKET = 0x17;
const LOGIN_PACKET = 0x82;
const LOGIN_STATUS_PACKET = 0x83;
const READY_PACKET = 0x84;