Skip to content

Commit

Permalink
Fixed CSB quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Sep 2, 2024
1 parent 8c13d4a commit 5d23214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

## Version 3.1.3

- Updated Polish localization (thank you Lioheart on weblate!)
- Fixed issues with merchants and custom prices utilizing secondary currencies
- Fixed adding container and non-stackable items into item piles from the same source would throw Foundry database errors
- Fixed merchant populate items tab not loading if a table had been added to the merchant and subsequently deleted
- Fixed issues with merchants and secondary prices

## Version 3.1.2

Expand Down
4 changes: 2 additions & 2 deletions src/helpers/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ export function getItemTypesThatCanStack() {

export function isItemStackable(itemData) {
getItemTypesThatCanStack();
if (game.system.id === "custom-system-builder" && itemData?.system?.documentTypes) {
const templateItem = game.items.get(itemData?.system?.documentTypes);
if (game.system.id === "custom-system-builder" && itemData?.system?.template) {
const templateItem = game.items.get(itemData?.system?.template);
if (templateItem) {
return itemTypesWithQuantities.has(templateItem.name)
}
Expand Down

0 comments on commit 5d23214

Please sign in to comment.