Fix station income instantly accumulating roundstart (#36572)

Fix station money accumulating roundstart
This commit is contained in:
Nemanja
2025-04-14 19:00:34 -04:00
committed by GitHub
parent ace3682de3
commit ed3e4c7d4e
5 changed files with 27 additions and 13 deletions

View File

@@ -78,7 +78,7 @@ namespace Content.Server.Cargo.Systems
var stationQuery = EntityQueryEnumerator<StationBankAccountComponent>();
while (stationQuery.MoveNext(out var uid, out var bank))
{
if (_timing.CurTime < bank.NextIncomeTime)
if (Timing.CurTime < bank.NextIncomeTime)
continue;
bank.NextIncomeTime += bank.IncomeDelay;