Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -63,13 +63,13 @@ namespace Content.Server.Engineering.EntitySystems
|
||||
if (component.Deleted || !IsTileClear())
|
||||
return;
|
||||
|
||||
if (EntityManager.TryGetComponent(uid, out StackComponent? stackComp)
|
||||
if (TryComp(uid, out StackComponent? stackComp)
|
||||
&& component.RemoveOnInteract && !_stackSystem.Use(uid, 1, stackComp))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
EntityManager.SpawnEntity(component.Prototype, args.ClickLocation.SnapToGrid(grid));
|
||||
Spawn(component.Prototype, args.ClickLocation.SnapToGrid(grid));
|
||||
|
||||
if (component.RemoveOnInteract && stackComp == null)
|
||||
TryQueueDel(uid);
|
||||
|
||||
Reference in New Issue
Block a user