From 124ebf69c5c902ce2a80eb0b4a94ae4ea2736ed8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 20 Jul 2018 11:29:40 +0100 Subject: [PATCH] PlayStatusPacket: default to current protocol if not specified --- src/pocketmine/network/mcpe/protocol/PlayStatusPacket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();