diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d9e92f9..e657a03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v2 # create a zip file with all files required by the module to add to the release - - run: zip -r ./module.zip module.json CHANGELOG.md spell-effects/ scripts/ + - run: zip -r ./module.zip module.json CHANGELOG.md spell-effects/ scripts/ sound-fx/ packs/ # Get the version from 'module.json' - name: Get Version diff --git a/scripts/sequencer-db.js b/scripts/sequencer-db.js index 0930e12..5ec0070 100644 --- a/scripts/sequencer-db.js +++ b/scripts/sequencer-db.js @@ -1,5 +1,4 @@ -Hooks.once('ready', () => { - if (game.modules.get("sequencer")?.active) { +Hooks.once('sequencer.ready', () => { const PATH = "modules/animated-spell-effects-cartoon/spell-effects/cartoon"; const cartoonDatabase = { "air": { @@ -932,5 +931,5 @@ Hooks.once('ready', () => { }, }; Sequencer.Database.registerEntries('animated-spell-effects-cartoon', cartoonDatabase); - } -}); \ No newline at end of file + +});