mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
more cleanup
This commit is contained in:
parent
2573e4f90d
commit
83b2bf5df1
8 changed files with 1 additions and 18 deletions
|
|
@ -5,7 +5,7 @@ class Pythagoras3D implements IDistanceAlgorithm
|
||||||
public function calculate(PathTile $from, PathTile $to)
|
public function calculate(PathTile $from, PathTile $to)
|
||||||
{
|
{
|
||||||
if($from instanceof PathTileXYZ && $to instanceof PathTileXYZ){
|
if($from instanceof PathTileXYZ && $to instanceof PathTileXYZ){
|
||||||
return Utils::distance_noroot($from->asVector(), $to->asVector());
|
return Utils::distance($from->asArray(), $to->asArray());
|
||||||
}
|
}
|
||||||
return 666;
|
return 666;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
<?php
|
|
||||||
abstract class WalkingEntity extends Entity{
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param int $tickDiff
|
|
||||||
*
|
|
||||||
* @return null|Vector3
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -15,10 +15,6 @@ abstract class ProtocolInfo{
|
||||||
const CLIENT_HANDSHAKE_PACKET = 0x13;
|
const CLIENT_HANDSHAKE_PACKET = 0x13;
|
||||||
//const SERVER_FULL_PACKET = 0x14;
|
//const SERVER_FULL_PACKET = 0x14;
|
||||||
const DISCONNECT_PACKET = 0x15;
|
const DISCONNECT_PACKET = 0x15;
|
||||||
|
|
||||||
//const BANNED_PACKET = 0x17;
|
|
||||||
|
|
||||||
|
|
||||||
const LOGIN_PACKET = 0x82;
|
const LOGIN_PACKET = 0x82;
|
||||||
const LOGIN_STATUS_PACKET = 0x83;
|
const LOGIN_STATUS_PACKET = 0x83;
|
||||||
const READY_PACKET = 0x84;
|
const READY_PACKET = 0x84;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue