Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Jan 1, 2024
1 parent 9b4da93 commit a36de0b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/applications/auctioneer/auctioneer-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,15 +654,6 @@ export function createStore(auctioneer) {
}

if (actor && itemsToCreate.length) {
if (actor.getFlag("item-piles", "data")?.type === "vault") {
const canEveryItemFit = itemsToCreate.every(data => {
return game.itempiles.API.canItemFitInVault(data.item, actor, data.quantity);
});
if (!canEveryItemFit) {
ui.notifications.warn("You cannot claim this item as there is no more space in your vault!");
return;
}
}
await game.itempiles.API.addItems(actor, itemsToCreate);
}
if (actor && (successfulAuctionCurrencies.length || failedBidCurrencies.length)) {
Expand Down

0 comments on commit a36de0b

Please sign in to comment.