Update SpawnAfterInteractSystem.cs to not use Component.Owner (#29968)

* Update SpawnAfterInteractSystem.cs

* what the fuck is that condition

---------

Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
Plykiya
2024-07-13 04:50:21 -07:00
committed by GitHub
parent 6c1d1057d5
commit 87c82ff114

View File

@@ -65,8 +65,8 @@ namespace Content.Server.Engineering.EntitySystems
EntityManager.SpawnEntity(component.Prototype, args.ClickLocation.SnapToGrid(grid));
if (component.RemoveOnInteract && stackComp == null && !((!EntityManager.EntityExists(uid) ? EntityLifeStage.Deleted : EntityManager.GetComponent<MetaDataComponent>(component.Owner).EntityLifeStage) >= EntityLifeStage.Deleted))
EntityManager.DeleteEntity(uid);
if (component.RemoveOnInteract && stackComp == null)
TryQueueDel(uid);
}
}
}