mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Player: Use connected status instead of Entity->closed flag
This commit is contained in:
parent
1ef538b69e
commit
809b33033e
@ -1806,7 +1806,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function setAuthenticationStatus(bool $authenticated, ?string $error) : bool{
|
public function setAuthenticationStatus(bool $authenticated, ?string $error) : bool{
|
||||||
if($this->closed){
|
if($this->networkSession === null){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user