mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
players are now invisible in spectator, methods for making player invisible added
This commit is contained in:
parent
819803c634
commit
c03653a050
2 changed files with 21 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue