mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Improved fall damage while on jump boost, new protocol update, build 7, allow for live inventory resizing
This commit is contained in:
@ -30,7 +30,7 @@ interface Info{
|
||||
/**
|
||||
* Actual Minecraft: PE protocol version
|
||||
*/
|
||||
const CURRENT_PROTOCOL = 23;
|
||||
const CURRENT_PROTOCOL = 24;
|
||||
|
||||
const LOGIN_PACKET = 0x82;
|
||||
const PLAY_STATUS_PACKET = 0x83;
|
||||
|
@ -36,6 +36,7 @@ class MovePlayerPacket extends DataPacket{
|
||||
public $bodyYaw;
|
||||
public $pitch;
|
||||
public $mode = 0;
|
||||
public $onGround;
|
||||
|
||||
public function pid(){
|
||||
return Info::MOVE_PLAYER_PACKET;
|
||||
@ -55,6 +56,7 @@ class MovePlayerPacket extends DataPacket{
|
||||
$this->bodyYaw = $this->getFloat();
|
||||
$this->pitch = $this->getFloat();
|
||||
$this->mode = $this->getByte();
|
||||
$this->onGround = $this->getByte() > 0;
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
@ -67,6 +69,7 @@ class MovePlayerPacket extends DataPacket{
|
||||
$this->putFloat($this->bodyYaw); //TODO
|
||||
$this->putFloat($this->pitch);
|
||||
$this->putByte($this->mode);
|
||||
$this->putByte($this->onGround > 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user