Content update for NetEntities (#18935)

This commit is contained in:
metalgearsloth
2023-09-11 09:42:41 +10:00
committed by Debug
parent e01e683230
commit c9648da984
526 changed files with 3058 additions and 2215 deletions

View File

@@ -19,10 +19,12 @@ public sealed class ProjectileSystem : SharedProjectileSystem
private void OnProjectileImpact(ImpactEffectEvent ev)
{
if (Deleted(ev.Coordinates.EntityId))
var coords = GetCoordinates(ev.Coordinates);
if (Deleted(coords.EntityId))
return;
var ent = Spawn(ev.Prototype, ev.Coordinates);
var ent = Spawn(ev.Prototype, coords);
if (TryComp<SpriteComponent>(ent, out var sprite))
{