Don't spawn muzzle flashes for unresolvable coordinates (#14949)

This commit is contained in:
metalgearsloth
2023-03-29 19:50:54 +11:00
committed by GitHub
parent d1a9162312
commit 168299dbc4

View 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);