From: eoineoineoin Date: Fri, 20 Sep 2024 11:58:26 +0000 (+0100) Subject: Fix disposal units flushing too soon after power-on (#32314) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=6d5ac1e9b67e8b6138e044df4f57a7cee84b269f;p=space-station-14.git 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> --- diff --git a/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs b/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs index f1d182fc66..2cf88efc6e 100644 --- a/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs +++ b/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs @@ -320,9 +320,10 @@ public sealed class DisposalUnitSystem : SharedDisposalUnitSystem return; } - if (component.Engaged && !TryFlush(uid, component)) + if (component.Engaged) { - QueueAutomaticEngage(uid, component); + // Run ManualEngage to recalculate a new flush time + ManualEngage(uid, component); } }