Fix FearTracker being rendered on load even if hidden (#130)

This commit is contained in:
Dapoulp 2025-06-13 09:01:52 +02:00 committed by GitHub
parent bc3525c970
commit 90bc2dc488
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,7 +120,7 @@ Hooks.once('init', () => {
Hooks.on('ready', () => {
ui.resources = new CONFIG.ui.resources();
ui.resources.render({ force: true });
if(game.settings.get(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.Resources.DisplayFear) !== 'hide') ui.resources.render({ force: true });
});
Hooks.once('dicesoniceready', () => {});