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 <helloworld@eoinrul.es>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
eoineoineoin
2024-09-20 12:58:26 +01:00
committed by GitHub
parent 1567af6f07
commit 6d5ac1e9b6

View 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);
}
}