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
No known key found for this signature in database
GPG Key ID: B06D41D26935005A
3 changed files with 5 additions and 3 deletions

View File

@ -75,8 +75,8 @@ namespace pocketmine {
const VERSION = "1.6dev"; const VERSION = "1.6dev";
const API_VERSION = "2.0.0"; const API_VERSION = "2.0.0";
const CODENAME = "[REDACTED]"; const CODENAME = "[REDACTED]";
const MINECRAFT_VERSION = "v0.14.2.0 alpha"; const MINECRAFT_VERSION = "v0.14.3.0 alpha";
const MINECRAFT_VERSION_NETWORK = "0.14.2.0"; const MINECRAFT_VERSION_NETWORK = "0.14.3.0";
/* /*
* Startup code. Do not look at it, it may harm you. * Startup code. Do not look at it, it may harm you.

View File

@ -30,7 +30,7 @@ interface Info{
/** /**
* Actual Minecraft: PE protocol version * Actual Minecraft: PE protocol version
*/ */
const CURRENT_PROTOCOL = 60; const CURRENT_PROTOCOL = 70;
const LOGIN_PACKET = 0x8f; const LOGIN_PACKET = 0x8f;
const PLAY_STATUS_PACKET = 0x90; const PLAY_STATUS_PACKET = 0x90;

View File

@ -38,6 +38,7 @@ class UseItemPacket extends DataPacket{
public $posX; public $posX;
public $posY; public $posY;
public $posZ; public $posZ;
public $slot;
public function decode(){ public function decode(){
$this->x = $this->getInt(); $this->x = $this->getInt();
@ -50,6 +51,7 @@ class UseItemPacket extends DataPacket{
$this->posX = $this->getFloat(); $this->posX = $this->getFloat();
$this->posY = $this->getFloat(); $this->posY = $this->getFloat();
$this->posZ = $this->getFloat(); $this->posZ = $this->getFloat();
$this->slot = $this->getInt();
$this->item = $this->getSlot(); $this->item = $this->getSlot();
} }