Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Sep 2, 2024
1 parent db7ec3c commit 6d6b53c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Item Piles Changelog

## Version 3.1.4 Hotfix

- Fixed minor issue with item quantities breaking the entire module

## Version 3.1.3

- Updated Polish localization (thank you Lioheart on weblate!)
Expand Down
6 changes: 3 additions & 3 deletions src/helpers/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export function setSimilarityProperties(obj, item) {
return obj;
}

let itemTypesWithQuantities = false;
let itemTypesWithQuantities;

export function refreshItemTypesThatCanStack() {
itemTypesWithQuantities = false;
itemTypesWithQuantities = undefined;
getItemTypesThatCanStack();
}

Expand Down Expand Up @@ -181,7 +181,7 @@ export function getItemTypesThatCanStack() {
return hasItemQuantity(itemTemplate);
})].filter(type => !unstackableItemTypes.includes(type)));
}

return itemTypesWithQuantities;
}

Expand Down

0 comments on commit 6d6b53c

Please sign in to comment.