]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix gun bolt crash (#24283)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Fri, 19 Jan 2024 10:14:41 +0000 (21:14 +1100)
committerGitHub <noreply@github.com>
Fri, 19 Jan 2024 10:14:41 +0000 (21:14 +1100)
Deleting non-predicted entities moment.

Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.ChamberMagazine.cs

index 1b124cd51dcfadf30c5478f70b77ed5325974bb3..dc5dc5b90c8b352b9b5d9bf905857c87c02cfb89 100644 (file)
@@ -232,7 +232,10 @@ public abstract partial class SharedGunSystem
                 {
                     foreach (var (ent, _) in relayedArgs.Ammo)
                     {
-                        Del(ent!.Value);
+                        if (!IsClientSide(ent!.Value))
+                            continue;
+
+                        Del(ent.Value);
                     }
                 }
             }