Skip to content

Commit

Permalink
don't do anything with events from own user
Browse files Browse the repository at this point in the history
  • Loading branch information
jefvel committed Dec 2, 2024
1 parent 9f589c7 commit 50ddd6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/entities/base/BaseUser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ class BaseUser extends NGSprite

public function on_event(event:NetEventDef)
{
if (event.username == username)
{
return;
}

switch (event.type)
{
case NetEventType.STICKER:
Expand Down

0 comments on commit 50ddd6e

Please sign in to comment.