Player: Use connected status instead of Entity->closed flag

This commit is contained in:
Dylan K. Taylor 2018-08-01 17:27:32 +01:00
parent 1ef538b69e
commit 809b33033e

View File

@ -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;
}