From f030be572269536ca1698b1a473e12be7f3c2489 Mon Sep 17 00:00:00 2001 From: Haxxer Date: Tue, 18 Jan 2022 00:19:47 +0000 Subject: [PATCH] 1.2.5 --- changelog.md | 7 +++++-- scripts/module.js | 3 ++- scripts/settings.js | 8 ++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 2a65271e..6950a2ab 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Item Piles Changelog +## Version 1.2.5 +- Added missing handlebars method for Foundry v0.8.9 + ## Version 1.2.4 Hotfix - Fixed error in `ItemPiles.API.addItems` throwing errors - Fixed D&D 3.5e system not correctly implemented @@ -16,10 +19,10 @@ - Fixed alt-quickdrop hotkey not creating a pile in the right location ## Version 1.2.1 -- Fixed hotkey errors on Foundry 0.8.9 +- Fixed hotkey errors on Foundry v0.8.9 ## Version 1.2.0 -- Now supports Foundry 0.8.9 +- Now supports Foundry v0.8.9 - Added setting to output items picked up to chat - Added setting to hide the "Item Piles" text in the actor header - useful if you have too many modules, and the header is getting crowded - Added support for the Tormenta 20 system: diff --git a/scripts/module.js b/scripts/module.js index fe6ca096..a9b56e60 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -1,5 +1,5 @@ import CONSTANTS from "./constants.js"; -import registerSettings, { checkSystem } from "./settings.js"; +import registerSettings, { checkSystem, registerHandlebarHelpers } from "./settings.js"; import { registerSocket } from "./socket.js"; import API from "./api.js"; import * as lib from "./lib/lib.js"; @@ -71,6 +71,7 @@ Hooks.once("ready", () => { checkSystem(); registerHotkeysPost(); + registerHandlebarHelpers(); Hooks.callAll(HOOKS.READY); }); diff --git a/scripts/settings.js b/scripts/settings.js index 940c91d5..77a810ec 100644 --- a/scripts/settings.js +++ b/scripts/settings.js @@ -233,4 +233,12 @@ export async function checkSystem(){ } return applyDefaultSettings(); +} + +export function registerHandlebarHelpers(){ + + Handlebars.registerHelper('concat', function(...args) { + return args.filter(str => typeof str !== "object").join(""); + }); + } \ No newline at end of file