diff --git a/src/Player.php b/src/Player.php index 51735415c..31f45809f 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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; diff --git a/src/network/raknet/RakNetParser.php b/src/network/raknet/RakNetParser.php index 17bbdfc04..dceff50dc 100644 --- a/src/network/raknet/RakNetParser.php +++ b/src/network/raknet/RakNetParser.php @@ -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;