From 33dec40fa4bc08a2bbe0866e1af695b6a7ac781a Mon Sep 17 00:00:00 2001 From: Cody Swendrowski Date: Sun, 15 Nov 2020 14:31:01 -0600 Subject: [PATCH] Additional enable / disables --- module.json | 4 ++-- tabbed-chatlog.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module.json b/module.json index 78c4fd3..64c1305 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "tabbed-chatlog", "title": "Tabbed Chatlog", "description": "Splits the Chatlog into In Character (per scene), Rolls (per scene), and Out of Character (global).", - "version": "1.5.6", + "version": "1.5.7", "minimumCoreVersion": "0.6.2", "compatibleCoreVersion": "0.7.7", "author": "Cody Swendrowski ", @@ -28,5 +28,5 @@ ], "url": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog", "manifest": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/latest/module.json", - "download": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/1.5.6/module.zip" + "download": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/1.5.7/module.zip" } diff --git a/tabbed-chatlog.js b/tabbed-chatlog.js index 19d999c..79b33f2 100644 --- a/tabbed-chatlog.js +++ b/tabbed-chatlog.js @@ -120,7 +120,9 @@ Hooks.on("renderChatMessage", (chatMessage, html, data) => { } else if (data.message.type == 5 && sceneMatches) { if (!html.hasClass('gm-roll-hidden')) { - if (game.dice3d && !game.settings.get("dice-so-nice", "immediatelyDisplayChatMessages")) return; + if (game.dice3d && game.settings.get("dice-so-nice", "settings").enabled && game.settings.get("dice-so-nice", "enabled")) { + if (!game.settings.get("dice-so-nice", "immediatelyDisplayChatMessages")) return; + } html.css("display", "list-item"); } }