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{