players are now invisible in spectator, methods for making player invisible added

This commit is contained in:
GameHerobrine 2022-09-24 23:25:34 +03:00
parent 819803c634
commit c03653a050
2 changed files with 21 additions and 2 deletions

View file

@ -587,7 +587,9 @@ class Entity extends Position{
if($this->player->connected !== true or $this->player->spawned === false){
return false;
}
if($this->player->gamemode === SPECTATOR){
break;
}
$pk = new AddPlayerPacket;
$pk->clientID = 0; //$this->player->clientID;
$pk->username = $this->player->username;