From e0ed87749445ed77d133ed92164fa5d76b6cccc2 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 8 Feb 2018 11:18:46 +0000 Subject: [PATCH] Protocol changes for 1.2.10 release Looks like they reverted near enough everything they did in the beta. --- src/pocketmine/network/mcpe/protocol/ProtocolInfo.php | 6 +++--- src/pocketmine/network/mcpe/protocol/StartGamePacket.php | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php index 631f3d804bc..b7e0641bc6e 100644 --- a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php +++ b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php @@ -39,15 +39,15 @@ interface ProtocolInfo{ /** * Actual Minecraft: PE protocol version */ - public const CURRENT_PROTOCOL = 160; + public const CURRENT_PROTOCOL = 201; /** * Current Minecraft PE version reported by the server. This is usually the earliest currently supported version. */ - public const MINECRAFT_VERSION = 'v1.2.7'; + public const MINECRAFT_VERSION = 'v1.2.10'; /** * Version number sent to clients in ping responses. */ - public const MINECRAFT_VERSION_NETWORK = '1.2.7'; + public const MINECRAFT_VERSION_NETWORK = '1.2.10'; public const LOGIN_PACKET = 0x01; public const PLAY_STATUS_PACKET = 0x02; diff --git a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php index 075f66c3880..f7923239f6e 100644 --- a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php +++ b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php @@ -96,6 +96,8 @@ class StartGamePacket extends DataPacket{ public $defaultPlayerPermission = PlayerPermissions::MEMBER; //TODO /** @var int */ public $xboxLiveBroadcastMode = 0; //TODO: find values + /** @var int */ + public $serverChunkTickRadius = 4; //TODO (leave as default for now) /** @var string */ public $levelId = ""; //base64 string, usually the same as world folder name in vanilla @@ -143,6 +145,7 @@ protected function decodePayload(){ $this->hasTrustPlayersEnabled = $this->getBool(); $this->defaultPlayerPermission = $this->getVarInt(); $this->xboxLiveBroadcastMode = $this->getVarInt(); + $this->serverChunkTickRadius = $this->getLInt(); $this->levelId = $this->getString(); $this->worldName = $this->getString(); @@ -186,6 +189,7 @@ protected function encodePayload(){ $this->putBool($this->hasTrustPlayersEnabled); $this->putVarInt($this->defaultPlayerPermission); $this->putVarInt($this->xboxLiveBroadcastMode); + $this->putLInt($this->serverChunkTickRadius); $this->putString($this->levelId); $this->putString($this->worldName);