From cce9bde4cdcce6cfaa22f0bcb1ed1507cfd328fb Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 8 Jan 2024 23:10:26 +1100 Subject: [PATCH] Fix gun cursor popup spam (#23732) --- Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.51.2