From 6925451f3fe7494604a69d314d8938bf7923cbfe Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 22 Jun 2019 20:25:50 +0100 Subject: [PATCH] StartGamePacket: added rogue field this was added after 1.11.0 without a protocol version bump. --- src/pocketmine/network/mcpe/protocol/StartGamePacket.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php index 445a077f6..4894d8acf 100644 --- a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php +++ b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php @@ -138,6 +138,9 @@ class StartGamePacket extends DataPacket{ /** @var string */ public $multiplayerCorrelationId = ""; //TODO: this should be filled with a UUID of some sort + /** @var bool */ + public $onlySpawnV1Villagers = false; + /** @var array|null each entry must have a "name" (string) and "data" (int16) element */ public $runtimeIdTable = null; @@ -202,6 +205,7 @@ class StartGamePacket extends DataPacket{ $this->runtimeIdTable = $table; $this->multiplayerCorrelationId = $this->getString(); + $this->onlySpawnV1Villagers = $this->getBool(); } protected function encodePayload(){ @@ -265,6 +269,7 @@ class StartGamePacket extends DataPacket{ } $this->putString($this->multiplayerCorrelationId); + $this->putBool($this->onlySpawnV1Villagers); } private static function serializeBlockTable(array $table) : string{