From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 8 Jan 2024 12:10:26 +0000 (+1100) Subject: Fix gun cursor popup spam (#23732) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=cce9bde4cdcce6cfaa22f0bcb1ed1507cfd328fb;p=space-station-14.git Fix gun cursor popup spam (#23732) --- diff --git a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs index 45f4f2e608..d0d2f04bcf 100644 --- a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs +++ b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs @@ -321,7 +321,7 @@ public abstract partial class SharedGunSystem : EntitySystem // If they're firing an existing clip then don't play anything. if (shots > 0) { - if (ev.Reason != null) + if (ev.Reason != null && Timing.IsFirstTimePredicted) { PopupSystem.PopupCursor(ev.Reason); }