Fix for cross-loaded French compendium

This commit is contained in:
Vlyan
2021-01-07 15:28:57 +01:00
parent 2f3e89d82c
commit 6faa82f4cd

View File

@@ -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",