Bug fix for APCPowerReceiverBattery (#40188)

Initial commit
This commit is contained in:
chromiumboy
2025-09-07 09:52:27 -05:00
committed by GitHub
parent c1ca510e78
commit 499dde1ec1
2 changed files with 5 additions and 8 deletions

View File

@@ -33,8 +33,6 @@ namespace Content.Server.Power.Components
set
{
_needsPower = value;
// Reset this so next tick will do a power update.
Recalculate = true;
}
}
@@ -51,9 +49,6 @@ namespace Content.Server.Power.Components
set => NetworkLoad.Enabled = !value;
}
// TODO Is this needed? It forces a PowerChangedEvent when NeedsPower is toggled even if it changes to the same state.
public bool Recalculate;
[ViewVariables]
public PowerState.Load NetworkLoad { get; } = new PowerState.Load
{