Bump version to 0.14.3.0 and protocol changes

This commit is contained in:
Intyre
2016-05-20 00:21:44 +02:00
parent ee9ba9f1a0
commit e2d079a7df
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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();
}