Skip to content

Commit

Permalink
Fully ignore DataNetEmoji in Client (hides own avatar when avatars di…
Browse files Browse the repository at this point in the history
…sabled) (#167)
  • Loading branch information
RedFlames authored Dec 21, 2024
1 parent d8b3fde commit 84763b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CelesteNet.Client/Components/CelesteNetEmojiComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public CelesteNetEmojiComponent(CelesteNetClientContext context, Game game)
}

public void Handle(CelesteNetConnection con, DataNetEmoji netemoji) {
if (Client?.Options?.AvatarsDisabled == true)
return;

lock (Pending) {
// Get the emoji asset
if (!Pending.TryGetValue(netemoji.ID, out NetEmojiAsset? asset))
Expand Down

0 comments on commit 84763b3

Please sign in to comment.