]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
ignore prediction on guns disabled popup (#15138)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Fri, 14 Apr 2023 19:44:26 +0000 (19:44 +0000)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2023 19:44:26 +0000 (12:44 -0700)
Co-authored-by: deltanedas <@deltanedas:kde.org>
Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs

index fdae26dcc139e460fd29936b0caae0e53b0cb689..99739eff55a60dd917a0d5c4595b7fc79eb9d0e2 100644 (file)
@@ -211,7 +211,8 @@ public abstract partial class SharedGunSystem : EntitySystem
 
         if (TagSystem.HasTag(user, "GunsDisabled"))
         {
-            Popup(Loc.GetString("gun-disabled"), user, user);
+            if (Timing.IsFirstTimePredicted)
+                Popup(Loc.GetString("gun-disabled"), user, user);
             return;
         }