Skip to content

Commit

Permalink
fix: don't rerender Special Effects Management on every world setting…
Browse files Browse the repository at this point in the history
… change

Closes #438
  • Loading branch information
ghost91- committed Mar 22, 2023
1 parent 97012c8 commit 5a2984e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/fxmaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ Hooks.on("hotbarDrop", (hotbar, data) => {
Hooks.on("updateSetting", (setting) => {
if (setting.key === "fxmaster.specialEffects") {
parseSpecialEffects();
Object.values(ui.windows).forEach((w) => {
if (w instanceof SpecialEffectsManagement) {
w.render(false);
}
});
}
Object.values(ui.windows).forEach((w) => {
if (w instanceof SpecialEffectsManagement) {
w.render(false);
}
});
});

Hooks.on("renderDrawingHUD", (hud, html) => {
Expand Down

0 comments on commit 5a2984e

Please sign in to comment.