Fixed Arrows not hitting entities, added new movement system

This commit is contained in:
Shoghi Cervantes
2015-06-07 21:08:46 +02:00
parent d0f743a99e
commit 7b17bf416e
4 changed files with 65 additions and 44 deletions

View File

@ -27,6 +27,10 @@ namespace pocketmine\network\protocol;
class MovePlayerPacket extends DataPacket{
const NETWORK_ID = Info::MOVE_PLAYER_PACKET;
const MODE_NORMAL = 0;
const MODE_RESET = 1;
const MODE_ROTATION = 2;
public $eid;
public $x;
public $y;
@ -34,7 +38,7 @@ class MovePlayerPacket extends DataPacket{
public $yaw;
public $bodyYaw;
public $pitch;
public $mode = 0;
public $mode = self::MODE_NORMAL;
public $onGround;
public function clean(){