mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed data packets being sent on player disconnect
This commit is contained in:
parent
b107191fdb
commit
1c7539b51a
@ -2369,6 +2369,9 @@ class Player{
|
||||
* @return array|bool
|
||||
*/
|
||||
public function dataPacket(RakNetDataPacket $packet){
|
||||
if($this->connected === false){
|
||||
return false;
|
||||
}
|
||||
$packet->encode();
|
||||
$len = strlen($packet->buffer) + 1;
|
||||
$MTU = $this->MTU - 24;
|
||||
|
Loading…
x
Reference in New Issue
Block a user