Cleanup warnings in AI wire actions (#37780)

Fix 4 warnings in Ai wire actions
This commit is contained in:
Tayrtahn
2025-05-24 12:08:03 -04:00
committed by GitHub
parent 9df514472f
commit f788558b49
2 changed files with 4 additions and 4 deletions

View File

@@ -22,13 +22,13 @@ public sealed partial class AiInteractWireAction : ComponentWireAction<StationAi
public override bool Cut(EntityUid user, Wire wire, StationAiWhitelistComponent component)
{
return EntityManager.System<SharedStationAiSystem>()
.SetWhitelistEnabled((component.Owner, component), false, announce: true);
.SetWhitelistEnabled((wire.Owner, component), false, announce: true);
}
public override bool Mend(EntityUid user, Wire wire, StationAiWhitelistComponent component)
{
return EntityManager.System<SharedStationAiSystem>()
.SetWhitelistEnabled((component.Owner, component), true);
.SetWhitelistEnabled((wire.Owner, component), true);
}
public override void Pulse(EntityUid user, Wire wire, StationAiWhitelistComponent component)

View File

@@ -23,13 +23,13 @@ public sealed partial class AiVisionWireAction : ComponentWireAction<StationAiVi
public override bool Cut(EntityUid user, Wire wire, StationAiVisionComponent component)
{
return EntityManager.System<SharedStationAiSystem>()
.SetVisionEnabled((component.Owner, component), false, announce: true);
.SetVisionEnabled((wire.Owner, component), false, announce: true);
}
public override bool Mend(EntityUid user, Wire wire, StationAiVisionComponent component)
{
return EntityManager.System<SharedStationAiSystem>()
.SetVisionEnabled((component.Owner, component), true);
.SetVisionEnabled((wire.Owner, component), true);
}
public override void Pulse(EntityUid user, Wire wire, StationAiVisionComponent component)