mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 15:19:56 +00:00
Player: Ensure we always get flagged as closed when parent constructor was never called
This was causing unexpected bugs when players got disconnected during the login sequence.
This commit is contained in:
parent
809b33033e
commit
af6b279e54
@ -2990,6 +2990,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
|
||||
if($this->constructed){
|
||||
parent::close();
|
||||
}else{
|
||||
$this->closed = true;
|
||||
}
|
||||
$this->spawned = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user