mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Split packet handling verified
This commit is contained in:
parent
a8b26a3caf
commit
3fed63b248
@ -1141,7 +1141,7 @@ class Player{
|
||||
foreach($this->receiveQueue as $count => $packets){
|
||||
unset($this->receiveQueue[$count]);
|
||||
foreach($packets as $p){
|
||||
if($p instanceof RakNetDataPacket){
|
||||
if($p instanceof RakNetDataPacket and $p->hasSplit === false){
|
||||
if(isset($p->messageIndex) and $p->messageIndex !== false){
|
||||
if($p->messageIndex > $this->receiveCount){
|
||||
$this->receiveCount = $p->messageIndex;
|
||||
|
@ -170,8 +170,6 @@ class RakNetParser{
|
||||
$splitCount = $this->getInt();
|
||||
$splitID = $this->getShort();
|
||||
$splitIndex = $this->getInt();
|
||||
//error! no split packets allowed!
|
||||
return false;
|
||||
}else{
|
||||
$splitCount = false;
|
||||
$splitID = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user