mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +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{
|
||||
if($this->closed){
|
||||
if($this->networkSession === null){
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user