diff --git a/src/pocketmine/network/mcpe/protocol/PlayStatusPacket.php b/src/pocketmine/network/mcpe/protocol/PlayStatusPacket.php index ed0408972..0dd128cbf 100644 --- a/src/pocketmine/network/mcpe/protocol/PlayStatusPacket.php +++ b/src/pocketmine/network/mcpe/protocol/PlayStatusPacket.php @@ -47,7 +47,7 @@ class PlayStatusPacket extends DataPacket{ * @var int * Used to determine how to write the packet when we disconnect incompatible clients. */ - public $protocol; + public $protocol = ProtocolInfo::CURRENT_PROTOCOL; protected function decodePayload(){ $this->status = $this->getInt();