PlayStatusPacket: default to current protocol if not specified

This commit is contained in:
Dylan K. Taylor 2018-07-20 11:29:40 +01:00
parent 4274640845
commit 124ebf69c5

View File

@ -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();