mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +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{
|
public function setAuthenticationStatus(bool $authenticated, ?string $error) : bool{
|
||||||
if($this->closed){
|
if($this->networkSession === null){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user