Make raiselocalevent not broadcast by default (#8998)

This commit is contained in:
metalgearsloth
2022-06-22 09:53:41 +10:00
committed by GitHub
parent 360a6b8b00
commit 8905996cfc
76 changed files with 165 additions and 165 deletions

View File

@@ -124,7 +124,7 @@ namespace Content.Server.Flash
public void Flash(EntityUid target, EntityUid? user, EntityUid? used, float flashDuration, float slowTo, bool displayPopup = true)
{
var attempt = new FlashAttemptEvent(target, user, used);
RaiseLocalEvent(target, attempt);
RaiseLocalEvent(target, attempt, true);
if (attempt.Cancelled)
return;
@@ -200,7 +200,7 @@ namespace Content.Server.Flash
if (args.Cancelled)
break;
if (_inventorySystem.TryGetSlotEntity(uid, slot, out var item, component))
RaiseLocalEvent(item.Value, args);
RaiseLocalEvent(item.Value, args, true);
}
}