]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Don't spawn muzzle flashes for unresolvable coordinates (#14949)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 29 Mar 2023 08:50:54 +0000 (19:50 +1100)
committerGitHub <noreply@github.com>
Wed, 29 Mar 2023 08:50:54 +0000 (19:50 +1100)
Content.Client/Weapons/Ranged/Systems/GunSystem.cs

index 0a7d62970fb68fa6148430c18b10f1e56accd447..d6f068fcb1778705e46b99efd58e7da3848ab7e0 100644 (file)
@@ -258,6 +258,9 @@ public sealed partial class GunSystem : SharedGunSystem
         else
             return;
 
+        if (!coordinates.IsValid(EntityManager))
+            return;
+
         var ent = Spawn(message.Prototype, coordinates);
 
         var effectXform = Transform(ent);