Skip to content

Commit

Permalink
Don't flush disposals immediately on power-on
Browse files Browse the repository at this point in the history
  • Loading branch information
Eoin Mcloughlin committed Sep 19, 2024
1 parent 937940b commit ea6210a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 reclaculate a new flush time
ManualEngage(uid, component);
}
}

Expand Down

0 comments on commit ea6210a

Please sign in to comment.