diff --git a/src/ose.js b/src/ose.js index 347cf8f..ba72bf8 100644 --- a/src/ose.js +++ b/src/ose.js @@ -75,11 +75,16 @@ Hooks.once("ready", async () => { Hooks.on("hotbarDrop", (bar, data, slot) => macros.createOseMacro(data, slot) ); - const template = "systems/ose/templates/chat/license.html"; - const html = await renderTemplate(template); - $("#settings .game-system").append(html); }); +Hooks.on("renderSidebarTab", async (object, html) => { + if (object instanceof Settings) { + const template = "systems/ose/templates/chat/license.html"; + const rendered = await renderTemplate(template); + html.find(".game-system").append(rendered); + } +}) + Hooks.on("preCreateCombatant", (combat, data, options, id) => { let init = game.settings.get("ose", "individualInit"); if (!init) {