From 6d5ac1e9b67e8b6138e044df4f57a7cee84b269f Mon Sep 17 00:00:00 2001 From: eoineoineoin Date: Fri, 20 Sep 2024 12:58:26 +0100 Subject: [PATCH] Fix disposal units flushing too soon after power-on (#32314) * Don't flush disposals immediately on power-on * Update Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs --------- Co-authored-by: Eoin Mcloughlin Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> --- .../Disposal/Unit/EntitySystems/DisposalUnitSystem.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs b/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs index f1d182fc668949..2cf88efc6e7085 100644 --- a/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs +++ b/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs @@ -320,9 +320,10 @@ private void OnPowerChange(EntityUid uid, SharedDisposalUnitComponent component, return; } - if (component.Engaged && !TryFlush(uid, component)) + if (component.Engaged) { - QueueAutomaticEngage(uid, component); + // Run ManualEngage to recalculate a new flush time + ManualEngage(uid, component); } }