From 6faa82f4cd1cf9855ab12b2fe62bebfc1eb7cb29 Mon Sep 17 00:00:00 2001 From: Vlyan Date: Thu, 7 Jan 2021 15:28:57 +0100 Subject: [PATCH] Fix for cross-loaded French compendium --- system/scripts/main-l5r5e.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/scripts/main-l5r5e.js b/system/scripts/main-l5r5e.js index b990c8a..275b981 100644 --- a/system/scripts/main-l5r5e.js +++ b/system/scripts/main-l5r5e.js @@ -183,8 +183,8 @@ Hooks.once("init", async function () { Hooks.once("setup", function () { // Do anything after initialization but before ready // Babele - if (typeof Babele !== "undefined") { - // eslint-disable-next-line no-undef + /* eslint-disable no-undef */ + if (typeof Babele !== "undefined" && Babele.get().modules.every((module) => module.lang !== "fr")) { Babele.get().register({ module: "../systems/l5r5e", // babele only accept modules, so... well :D lang: "fr",