mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 09:10:00 +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){
|
foreach($this->receiveQueue as $count => $packets){
|
||||||
unset($this->receiveQueue[$count]);
|
unset($this->receiveQueue[$count]);
|
||||||
foreach($packets as $p){
|
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(isset($p->messageIndex) and $p->messageIndex !== false){
|
||||||
if($p->messageIndex > $this->receiveCount){
|
if($p->messageIndex > $this->receiveCount){
|
||||||
$this->receiveCount = $p->messageIndex;
|
$this->receiveCount = $p->messageIndex;
|
||||||
|
@ -170,8 +170,6 @@ class RakNetParser{
|
|||||||
$splitCount = $this->getInt();
|
$splitCount = $this->getInt();
|
||||||
$splitID = $this->getShort();
|
$splitID = $this->getShort();
|
||||||
$splitIndex = $this->getInt();
|
$splitIndex = $this->getInt();
|
||||||
//error! no split packets allowed!
|
|
||||||
return false;
|
|
||||||
}else{
|
}else{
|
||||||
$splitCount = false;
|
$splitCount = false;
|
||||||
$splitID = false;
|
$splitID = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user