Skip to content

Commit

Permalink
Revert "fix"
Browse files Browse the repository at this point in the history
This reverts commit 3992ec9.
  • Loading branch information
MilonPL committed Nov 4, 2024
1 parent 36a8aaa commit 766fc8c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Content.Server/Cargo/Systems/CargoSystem.Orders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ private void UpdateConsole(float frameTime)
{
_timer -= Delay;

var stationQuery = EntityQueryEnumerator<StationBankAccountComponent>();
while (stationQuery.MoveNext(out var uid, out var bank))
foreach (var account in EntityQuery<StationBankAccountComponent>())
{
var balanceToAdd = bank.IncreasePerSecond * Delay;
UpdateBankAccount(uid, bank, balanceToAdd);
account.Balance += account.IncreasePerSecond * Delay;
}

var query = EntityQueryEnumerator<CargoOrderConsoleComponent>();
Expand Down

0 comments on commit 766fc8c

Please sign in to comment.