From 241345bf0a68921fa7d4ecb97f597ee4f2ad68ba Mon Sep 17 00:00:00 2001 From: agaringer Date: Sun, 6 Feb 2022 12:10:54 -0500 Subject: [PATCH 1/2] Fix Dice Roll icon in toolbar in V9 --- module/blades.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module/blades.js b/module/blades.js index 47b074c..f1930c4 100644 --- a/module/blades.js +++ b/module/blades.js @@ -52,7 +52,7 @@ Hooks.once("init", async function() { Items.unregisterSheet("core", ItemSheet); Items.registerSheet("blades", BladesItemSheet, {makeDefault: true}); await preloadHandlebarsTemplates(); - + Actors.registeredSheets.forEach(element => console.log(element.Actor.name)); @@ -296,5 +296,9 @@ Hooks.on("renderSceneControls", async (app, html) => { dice_roller.click( async function() { await simpleRollPopup(); }); - html.append(dice_roller); + if ( !foundry.utils.isNewerVersion("9", game.version ?? game.data.version) ) { + html.children().first().append( dice_roller ); + } else { + html.append( dice_roller ); + } }); From 324b2481b61c7032f7c9c823ae8b95fd6669fccd Mon Sep 17 00:00:00 2001 From: Megastruktur Date: Wed, 9 Mar 2022 11:16:34 +0300 Subject: [PATCH 2/2] Release 3.17 - Fix Dice Roll icon in toolbar in V9 #172 --- CHANGELOG.txt | 3 +++ system.json | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 087943e..56d9810 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,6 @@ +v.3.17 +- Fix Dice Roll icon in toolbar in V9 #172 + v.3.16 - Fixes German translation diff --git a/system.json b/system.json index 18cc7bd..610b2d3 100644 --- a/system.json +++ b/system.json @@ -2,9 +2,9 @@ "name": "blades-in-the-dark", "title": "Blades in the Dark", "description": "Blades in the dark game system.", - "version": "3.16", + "version": "3.17", "minimumCoreVersion": "0.8.5", - "compatibleCoreVersion": "0.8.9", + "compatibleCoreVersion": "9", "templateVersion": 1, "author": "megastruktur", "esmodules": [ @@ -47,7 +47,7 @@ ], "url": "https://github.com/megastruktur/foundryvtt-blades-in-the-dark/", "manifest": "https://raw.githubusercontent.com/megastruktur/foundryvtt-blades-in-the-dark/master/system.json", - "download": "https://github.com/megastruktur/foundryvtt-blades-in-the-dark/archive/3.16.zip", + "download": "https://github.com/megastruktur/foundryvtt-blades-in-the-dark/archive/3.17.zip", "packs": [ { "name": "class",