mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed Arrows not hitting entities, added new movement system
This commit is contained in:
@ -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(){
|
||||
|
Reference in New Issue
Block a user