Skip to content

Commit

Permalink
Update SharedNanoChatSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonsant authored Jan 1, 2025
1 parent 319d239 commit 541849c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private void OnExamined(Entity<NanoChatCardComponent> ent, ref ExaminedEvent arg
/// </summary>
public void SetNumber(Entity<NanoChatCardComponent?> card, uint number)
{
if (!Resolve(card, ref card.Comp))
if (!Resolve(card, ref card.Comp) || card.Comp.Number == number)
return;

card.Comp.Number = number;
Expand Down

0 comments on commit 541849c

Please sign in to comment.