mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Protocol changes for 1.6.0.1
This commit is contained in:
@ -74,10 +74,6 @@ abstract class DataPacket extends NetworkBinaryStream{
|
||||
protected function decodeHeader(){
|
||||
$pid = $this->getUnsignedVarInt();
|
||||
assert($pid === static::NETWORK_ID);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -96,9 +92,6 @@ abstract class DataPacket extends NetworkBinaryStream{
|
||||
|
||||
protected function encodeHeader(){
|
||||
$this->putUnsignedVarInt(static::NETWORK_ID);
|
||||
|
||||
$this->putByte($this->senderSubId);
|
||||
$this->putByte($this->recipientSubId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user