]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix fax spamming (#35135)
authorthemias <89101928+themias@users.noreply.github.com>
Thu, 13 Feb 2025 20:12:56 +0000 (15:12 -0500)
committerGitHub <noreply@github.com>
Thu, 13 Feb 2025 20:12:56 +0000 (21:12 +0100)
* Fix fax spamming

* Also prevent copy spam

Content.Server/Fax/FaxSystem.cs

index b73c101e3fea8a36cac78d4addc66c9b8f34d973..180689f8925387992d721a62f112ac254046c171 100644 (file)
@@ -451,6 +451,9 @@ public sealed class FaxSystem : EntitySystem
         if (!Resolve(uid, ref component))
             return;
 
+        if (component.SendTimeoutRemaining > 0)
+            return;
+
         var sendEntity = component.PaperSlot.Item;
         if (sendEntity == null)
             return;
@@ -495,6 +498,9 @@ public sealed class FaxSystem : EntitySystem
         if (!Resolve(uid, ref component))
             return;
 
+        if (component.SendTimeoutRemaining > 0)
+            return;
+
         var sendEntity = component.PaperSlot.Item;
         if (sendEntity == null)
             return;