Don't spawn muzzle flashes for unresolvable coordinates (#14949)
This commit is contained in:
@@ -258,6 +258,9 @@ public sealed partial class GunSystem : SharedGunSystem
|
|||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!coordinates.IsValid(EntityManager))
|
||||||
|
return;
|
||||||
|
|
||||||
var ent = Spawn(message.Prototype, coordinates);
|
var ent = Spawn(message.Prototype, coordinates);
|
||||||
|
|
||||||
var effectXform = Transform(ent);
|
var effectXform = Transform(ent);
|
||||||
|
|||||||
Reference in New Issue
Block a user