]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix: hide timer trigger's cycle time verb if DelayOptions is empty (#39388)
authorPerry Fraser <perryprog@users.noreply.github.com>
Tue, 5 Aug 2025 03:26:02 +0000 (23:26 -0400)
committerGitHub <noreply@github.com>
Tue, 5 Aug 2025 03:26:02 +0000 (05:26 +0200)
fix: hide cycle time verb if DelayOptions is empty

Content.Shared/Trigger/Systems/TriggerSystem.Timer.cs

index 776b17bda61b679f1b9ac1d25fd7584006513f02..58ac43e5719f411c1b302b18e6e8a61bc4dcff1d 100644 (file)
@@ -63,7 +63,7 @@ public sealed partial class TriggerSystem
         if (!args.CanInteract || !args.CanAccess || args.Hands == null)
             return;
 
-        if (ent.Comp.DelayOptions == null || ent.Comp.DelayOptions.Count == 1)
+        if (ent.Comp.DelayOptions.Count <= 1)
             return;
 
         var user = args.User;