Fix gun cursor popup spam (#23732)

This commit is contained in:
metalgearsloth 2024-01-08 23:10:26 +11:00 • committed by GitHub
parent 6913ebcf05
commit cce9bde4cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}