Skip to content

Commit

Permalink
fix(market): can now list the last of a resource
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 29, 2023
1 parent d78e40e commit 1901f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/modules/inventory/inventory.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class InventoryService {
const inventory = await this.getInventoryForUser(userId);
if (!inventory) return;

return inventory.resources[resourceId] > amount;
return inventory.resources[resourceId] >= amount;
}

async updateEquippedItem(userId: string, slot: ItemSlot, item: IEquipment) {
Expand Down

0 comments on commit 1901f37

Please sign in to comment.