mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Player: Use connected status instead of Entity->closed flag
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user