implemented hide if spectator
This commit is contained in:
parent
7ed6728e34
commit
c093a95bc0
21 changed files with 104 additions and 69 deletions
|
|
@ -194,8 +194,10 @@ public class FabricPlayer extends FabricCommandSender implements DynmapPlayer {
|
|||
|
||||
@Override
|
||||
public boolean isInvisible() {
|
||||
if (player != null) {
|
||||
return player.isInvisible();
|
||||
if(player != null) {
|
||||
if (player.isSpectator())
|
||||
return true;
|
||||
else return player.isInvisible();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue