Ensure giveProfileMoney() rounds money its sending to nearest integer

This commit is contained in:
Dev 2024-02-07 23:23:19 +00:00
parent 439c412800
commit 8756431774

View File

@ -224,7 +224,7 @@ export class PaymentService
const rootCurrencyReward = { const rootCurrencyReward = {
_id: this.hashUtil.generate(), _id: this.hashUtil.generate(),
_tpl: currency, _tpl: currency,
upd: { StackObjectsCount: calcAmount }, upd: { StackObjectsCount: Math.round(calcAmount) },
}; };
// Ensure money is properly split to follow its max stack size limit // Ensure money is properly split to follow its max stack size limit