From e2d079a7df3bb65437021320191475d490600527 Mon Sep 17 00:00:00 2001 From: Intyre Date: Fri, 20 May 2016 00:21:44 +0200 Subject: [PATCH] Bump version to 0.14.3.0 and protocol changes --- src/pocketmine/PocketMine.php | 4 ++-- src/pocketmine/network/protocol/Info.php | 2 +- src/pocketmine/network/protocol/UseItemPacket.php | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index 766eda05d..d108be5c0 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -75,8 +75,8 @@ namespace pocketmine { const VERSION = "1.6dev"; const API_VERSION = "2.0.0"; const CODENAME = "[REDACTED]"; - const MINECRAFT_VERSION = "v0.14.2.0 alpha"; - const MINECRAFT_VERSION_NETWORK = "0.14.2.0"; + const MINECRAFT_VERSION = "v0.14.3.0 alpha"; + const MINECRAFT_VERSION_NETWORK = "0.14.3.0"; /* * Startup code. Do not look at it, it may harm you. diff --git a/src/pocketmine/network/protocol/Info.php b/src/pocketmine/network/protocol/Info.php index 7e7579848..f19905ae7 100644 --- a/src/pocketmine/network/protocol/Info.php +++ b/src/pocketmine/network/protocol/Info.php @@ -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; diff --git a/src/pocketmine/network/protocol/UseItemPacket.php b/src/pocketmine/network/protocol/UseItemPacket.php index 325158c83..42752c138 100644 --- a/src/pocketmine/network/protocol/UseItemPacket.php +++ b/src/pocketmine/network/protocol/UseItemPacket.php @@ -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(); }