only add emag component if the event was handled (#14627)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
parent
3b5354c2f2
commit
e0cfc42360
|
|
@ -164,7 +164,7 @@ namespace Content.Shared.Emag.Systems
|
|||
var emaggedEvent = new GotEmaggedEvent(user);
|
||||
RaiseLocalEvent(target, ref emaggedEvent);
|
||||
|
||||
if (!emaggedEvent.Repeatable)
|
||||
if (emaggedEvent.Handled && !emaggedEvent.Repeatable)
|
||||
EnsureComp<EmaggedComponent>(target);
|
||||
return emaggedEvent.Handled;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue