We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4cd35be + 38ad912 commit b465995Copy full SHA for b465995
src/plugins/objects/bank/bank.plugin.ts
@@ -170,9 +170,7 @@ export const withdrawItem: itemInteractionActionHandler = (details) => {
170
amount: removeFromContainer(playerBank, details.itemId, countToRemove)
171
};
172
173
- for (let i = 0; i < itemToAdd.amount; i++) {
174
- playerInventory.add({ itemId: itemIdToAdd, amount: 1 });
175
- }
+ playerInventory.add({ itemId: itemToAdd.itemId, amount: itemToAdd.amount });
176
177
updateBankingInterface(details.player);
178
0 commit comments