diff --git a/src/pocketmine/network/mcpe/protocol/DataPacket.php b/src/pocketmine/network/mcpe/protocol/DataPacket.php index 7bbbcba34..c1b983177 100644 --- a/src/pocketmine/network/mcpe/protocol/DataPacket.php +++ b/src/pocketmine/network/mcpe/protocol/DataPacket.php @@ -37,9 +37,9 @@ abstract class DataPacket extends NetworkBinaryStream{ public $isEncoded = false; /** @var int */ - public $extraByte1 = 0; + public $senderSubId = 0; /** @var int */ - public $extraByte2 = 0; + public $recipientSubId = 0; public function pid(){ return $this::NETWORK_ID; @@ -75,9 +75,9 @@ abstract class DataPacket extends NetworkBinaryStream{ $pid = $this->getUnsignedVarInt(); assert($pid === static::NETWORK_ID); - $this->extraByte1 = $this->getByte(); - $this->extraByte2 = $this->getByte(); - assert($this->extraByte1 === 0 and $this->extraByte2 === 0, "Got unexpected non-zero split-screen bytes (byte1: $this->extraByte1, byte2: $this->extraByte2"); + $this->senderSubId = $this->getByte(); + $this->recipientSubId = $this->getByte(); + assert($this->senderSubId === 0 and $this->recipientSubId === 0, "Got unexpected non-zero split-screen bytes (byte1: $this->senderSubId, byte2: $this->recipientSubId"); } /** @@ -97,8 +97,8 @@ abstract class DataPacket extends NetworkBinaryStream{ protected function encodeHeader(){ $this->putUnsignedVarInt(static::NETWORK_ID); - $this->putByte($this->extraByte1); - $this->putByte($this->extraByte2); + $this->putByte($this->senderSubId); + $this->putByte($this->recipientSubId); } /**