Remove 700 usages of Component.Owner (#21100)
This commit is contained in:
@@ -51,7 +51,7 @@ namespace Content.Server.Body.Commands
|
||||
var mechanismName = string.Join(" ", args).ToLowerInvariant();
|
||||
var bodySystem = entityManager.System<BodySystem>();
|
||||
|
||||
foreach (var organ in bodySystem.GetBodyOrgans(body.Owner, body))
|
||||
foreach (var organ in bodySystem.GetBodyOrgans(attached, body))
|
||||
{
|
||||
if (fac.GetComponentName(organ.Component.GetType()).ToLowerInvariant() == mechanismName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user