mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Bump version to 0.14.3.0 and protocol changes
This commit is contained in:
@ -30,7 +30,7 @@ interface Info{
|
||||
/**
|
||||
* Actual Minecraft: PE protocol version
|
||||
*/
|
||||
const CURRENT_PROTOCOL = 60;
|
||||
const CURRENT_PROTOCOL = 70;
|
||||
|
||||
const LOGIN_PACKET = 0x8f;
|
||||
const PLAY_STATUS_PACKET = 0x90;
|
||||
|
@ -38,6 +38,7 @@ class UseItemPacket extends DataPacket{
|
||||
public $posX;
|
||||
public $posY;
|
||||
public $posZ;
|
||||
public $slot;
|
||||
|
||||
public function decode(){
|
||||
$this->x = $this->getInt();
|
||||
@ -50,6 +51,7 @@ class UseItemPacket extends DataPacket{
|
||||
$this->posX = $this->getFloat();
|
||||
$this->posY = $this->getFloat();
|
||||
$this->posZ = $this->getFloat();
|
||||
$this->slot = $this->getInt();
|
||||
|
||||
$this->item = $this->getSlot();
|
||||
}
|
||||
|
Reference in New Issue
Block a user