Don't do visibility checks for OfflinePlayers (#5375)

Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
This commit is contained in:
Josh Roy 2023-07-01 16:41:56 -04:00 committed by GitHub
parent ed41790712
commit a1fa1e38f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -679,6 +679,9 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
@Override
public boolean isHiddenFrom(Player player) {
if (getBase() instanceof OfflinePlayer || player instanceof OfflinePlayer) {
return true;
}
return !player.canSee(getBase());
}