Skip to content

Commit

Permalink
fix: add missing awaits
Browse files Browse the repository at this point in the history
Closes #761
  • Loading branch information
ghost91- committed Sep 8, 2024
1 parent 7366cfb commit ec1f2d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function onSwitchParticleEffects(parameters) {
if (Object.keys(effects).length == 0) {
await canvas.scene.unsetFlag(packageId, "effects");
} else {
resetFlag(canvas.scene, "effects", effects);
await resetFlag(canvas.scene, "effects", effects);
}
}

Expand All @@ -36,7 +36,7 @@ async function onSwitchParticleEffects(parameters) {
*/
async function onUpdateParticleEffects(parametersArray) {
const effects = Object.fromEntries(parametersArray.map((parameters) => [foundry.utils.randomID(), parameters]));
resetFlag(canvas.scene, "effects", effects);
await resetFlag(canvas.scene, "effects", effects);
}

const deprecations = {
Expand Down

0 comments on commit ec1f2d2

Please sign in to comment.