diff --git a/src/Player.php b/src/Player.php index e309810a5..58b9d9bd7 100644 --- a/src/Player.php +++ b/src/Player.php @@ -2317,7 +2317,7 @@ class Player{ $sendtime = microtime(true); $size = $this->MTU - 34; - $buffer = str_split(chr($packet->pid()). $packet->buffer, $size); + $buffer = str_split(chr($packet->pid()) . $packet->buffer, $size); $bigCnt = $this->bigCnt; $this->bigCnt = ($this->bigCnt + 1) % 0x10000; $cnts = array(); diff --git a/src/network/raknet/RakNetCodec.php b/src/network/raknet/RakNetCodec.php index 02f08c2a6..5595400b9 100644 --- a/src/network/raknet/RakNetCodec.php +++ b/src/network/raknet/RakNetCodec.php @@ -144,9 +144,6 @@ class RakNetCodec{ $this->putInt($pk->splitCount); $this->putShort($pk->splitID); $this->putInt($pk->splitIndex); - if($pk->splitIndex === 0){ - $this->putByte($pk->pid()); - } }else{ $this->putByte($pk->pid()); }