Inline OwnerUid

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 16:30:34 +01:00
parent 2eacf98335
commit f386b57148
85 changed files with 219 additions and 215 deletions

View File

@@ -33,11 +33,11 @@ namespace Content.Server.Shuttles.Components
if (!_enabled)
{
system.DisableThruster(OwnerUid, this);
system.DisableThruster(((IComponent) this).Owner, this);
}
else if (system.CanEnable(OwnerUid, this))
else if (system.CanEnable(((IComponent) this).Owner, this))
{
system.EnableThruster(OwnerUid, this);
system.EnableThruster(((IComponent) this).Owner, this);
}
}
}