]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix disposal units flushing too soon after power-on (#32314)
authoreoineoineoin <github@eoinrul.es>
Fri, 20 Sep 2024 11:58:26 +0000 (12:58 +0100)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2024 11:58:26 +0000 (21:58 +1000)
* Don't flush disposals immediately on power-on

* Update Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs

---------

Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs

index f1d182fc6689491e3128b3c47aded13d5fa48352..2cf88efc6e7085f725fdf71598de604005fe1527 100644 (file)
@@ -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);
         }
     }