Fixed the fear tracker showing up while supposed to be hidden

This commit is contained in:
WBHarry 2026-02-12 19:03:21 +01:00
parent 12bcd6e34e
commit 60cd28ae82
2 changed files with 2 additions and 4 deletions

View file

@ -34,8 +34,6 @@ export default class FearTracker extends HandlebarsApplicationMixin(ApplicationV
position: { position: {
width: 222, width: 222,
height: 222 height: 222
// top: "200px",
// left: "120px"
} }
}; };
@ -66,7 +64,7 @@ export default class FearTracker extends HandlebarsApplicationMixin(ApplicationV
max = this.maxFear, max = this.maxFear,
percent = (current / max) * 100, percent = (current / max) * 100,
isGM = game.user.isGM; isGM = game.user.isGM;
// Return the data for rendering
return { display, current, max, percent, isGM }; return { display, current, max, percent, isGM };
} }

View file

@ -126,7 +126,7 @@ const registerNonConfigSettings = () => {
type: Number, type: Number,
default: 0, default: 0,
onChange: () => { onChange: () => {
if (ui.resources) ui.resources.render({ force: true }); if (ui.resources) ui.resources.render();
ui.combat.render({ force: true }); ui.combat.render({ force: true });
} }
}); });