From a5bf786e367aa735b6f67507d297afccbec70c3f Mon Sep 17 00:00:00 2001 From: Johnny Hausman Date: Wed, 4 Feb 2026 23:06:43 -0600 Subject: [PATCH] [wip] initial implementation of Bundled Plugins --- ABMLClassCore.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ABMLClassCore.js b/ABMLClassCore.js index dcb3d6b6..e2a6fd46 100644 --- a/ABMLClassCore.js +++ b/ABMLClassCore.js @@ -138,7 +138,16 @@ module.exports = class ABMLClassCore extends ABEmitter { } if (typeof json.translations == "string") { - json.translations = JSON.parse(json.translations); + try { + json.translations = JSON.parse(json.translations); + } catch (e) { + console.error(`===============================================`); + console.error(`Error parsing translations: ${e}`); + console.error(`json.translations: [${json.translations}]`); + console.error(`obj.name: ${obj.name}`); + console.error(`obj.id: ${obj.id || obj.uuid}`); + console.error(`===============================================`); + } } var currLanguage = languageCode || this.languageDefault();