mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed split packet sending
This commit is contained in:
parent
2562d8fc41
commit
28a753ba60
@ -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();
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user