From 5d232148fc27378287f8d4e7cbc2c79bd1e8e253 Mon Sep 17 00:00:00 2001 From: Haxxer Date: Mon, 2 Sep 2024 11:24:57 +0100 Subject: [PATCH] Fixed CSB quantity --- changelog.md | 3 ++- src/helpers/utilities.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 35ad5c89..641df983 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/src/helpers/utilities.js b/src/helpers/utilities.js index 18c0651e..877af9be 100644 --- a/src/helpers/utilities.js +++ b/src/helpers/utilities.js @@ -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) }