Cleanup warnings in AI wire actions (#37780)
Fix 4 warnings in Ai wire actions
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user