diff --git a/server/main.lua b/server/main.lua index eba7d460..d340dde0 100644 --- a/server/main.lua +++ b/server/main.lua @@ -107,7 +107,9 @@ function CalculateBankSavings(d, h, m) local interests = math.floor(account.money / 100 * Config.BankSavingPercentage) bankInterests = bankInterests + interests - account.addMoney(interests) + table.insert(asyncTasks, function(cb) + account.addMoney(interests) + end) end)