mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +00:00
Fixed split packet sending
This commit is contained in:
parent
2562d8fc41
commit
28a753ba60
@ -2317,7 +2317,7 @@ class Player{
|
|||||||
$sendtime = microtime(true);
|
$sendtime = microtime(true);
|
||||||
|
|
||||||
$size = $this->MTU - 34;
|
$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;
|
$bigCnt = $this->bigCnt;
|
||||||
$this->bigCnt = ($this->bigCnt + 1) % 0x10000;
|
$this->bigCnt = ($this->bigCnt + 1) % 0x10000;
|
||||||
$cnts = array();
|
$cnts = array();
|
||||||
|
@ -144,9 +144,6 @@ class RakNetCodec{
|
|||||||
$this->putInt($pk->splitCount);
|
$this->putInt($pk->splitCount);
|
||||||
$this->putShort($pk->splitID);
|
$this->putShort($pk->splitID);
|
||||||
$this->putInt($pk->splitIndex);
|
$this->putInt($pk->splitIndex);
|
||||||
if($pk->splitIndex === 0){
|
|
||||||
$this->putByte($pk->pid());
|
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
$this->putByte($pk->pid());
|
$this->putByte($pk->pid());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user