Explosives with timers now properly alert admins when detonating (#40471)
* Explosives with timers now properly alert admins when detonating * add TODO comment * Check if user is deleted before triggering
This commit is contained in:
@@ -168,7 +168,8 @@ public sealed partial class TriggerSystem
|
||||
|
||||
if (timer.NextTrigger <= curTime)
|
||||
{
|
||||
Trigger(uid, timer.User, timer.KeyOut);
|
||||
var user = TerminatingOrDeleted(timer.User) ? null : timer.User;
|
||||
Trigger(uid, user, timer.KeyOut);
|
||||
// Remove after triggering to prevent it from starting the timer again
|
||||
RemComp<ActiveTimerTriggerComponent>(uid);
|
||||
if (TryComp<AppearanceComponent>(uid, out var appearance))
|
||||
|
||||
Reference in New Issue
Block a user