From 89ca2ac2d5f9299ab23c153e24a64f4d04aaeaa8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 22 Jun 2017 15:51:56 +0100 Subject: [PATCH] Found an unknown field in ChangeDimensionPacket No idea what this is actually used for though. It's set when a client dies in a different dimension and respawns in the overworld. --- .../network/mcpe/protocol/ChangeDimensionPacket.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/ChangeDimensionPacket.php b/src/pocketmine/network/mcpe/protocol/ChangeDimensionPacket.php index 11f8bd0abd..e625581bd2 100644 --- a/src/pocketmine/network/mcpe/protocol/ChangeDimensionPacket.php +++ b/src/pocketmine/network/mcpe/protocol/ChangeDimensionPacket.php @@ -38,19 +38,19 @@ class ChangeDimensionPacket extends DataPacket{ public $x; public $y; public $z; - public $unknown; //bool + public $respawn = false; public function decode(){ $this->dimension = $this->getVarInt(); $this->getVector3f($this->x, $this->y, $this->z); - $this->unknown = $this->getBool(); + $this->respawn = $this->getBool(); } public function encode(){ $this->reset(); $this->putVarInt($this->dimension); $this->putVector3f($this->x, $this->y, $this->z); - $this->putBool($this->unknown); + $this->putBool($this->respawn); } public function handle(NetworkSession $session) : bool{