Protocol changes for 1.6.0.1

This commit is contained in:
Dylan K. Taylor
2018-06-15 19:24:23 +01:00
parent 6fce2b3349
commit 986077e03c
15 changed files with 266 additions and 42 deletions

View File

@ -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);
}
/**