Fix component generic usages where IComponent would not be valid (#19482)
This commit is contained in:
@@ -58,7 +58,7 @@ namespace Content.Server.Engineering.EntitySystems
|
||||
if (component.Deleted || !IsTileClear())
|
||||
return;
|
||||
|
||||
if (EntityManager.TryGetComponent<StackComponent?>(component.Owner, out var stackComp)
|
||||
if (EntityManager.TryGetComponent(component.Owner, out StackComponent? stackComp)
|
||||
&& component.RemoveOnInteract && !_stackSystem.Use(uid, 1, stackComp))
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user