Skip to content

Commit

Permalink
don't save ping as disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Govorunb committed Jun 12, 2024
1 parent b33c7c4 commit 94ffbcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SCHIZO/SwarmControl/Redeems/Annoying/HideVehicleSignal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void Activate()
{
if (!p.enabled) continue;

p.enabled = false;
p.OnDisable(); // we don't want to store them as disabled in the save file
_disabledPings.Add(p);
}
LOGGER.LogInfo($"{nameof(HideVehicleSignal)} activated - disabled {_disabledPings.Count} pings");
Expand All @@ -84,7 +84,7 @@ private void Deactivate()
foreach (PingInstance p in _disabledPings)
{
if (!p) continue;
p.enabled = true;
p.OnEnable();
}
LOGGER.LogInfo($"{nameof(HideVehicleSignal)} deactivated");
_disabledPings.Clear();
Expand Down

0 comments on commit 94ffbcc

Please sign in to comment.