ENH: Fixed Kofi

master
U~man 2020-07-10 20:09:30 +02:00
parent acd30407a4
commit 8760b08dcc
1 changed files with 8 additions and 3 deletions

View File

@ -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) {