Skip to content

Commit

Permalink
Merge pull request #165 from Silvertower/main
Browse files Browse the repository at this point in the history
Fix deprecation warnings
  • Loading branch information
Silvertower authored Dec 24, 2024
2 parents 8135deb + 983967c commit 1cd810d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"type": "system",
"compatibility": {
"minimum": "6.6.2",
"verified": "6.7.0"
"verified": "6.8.0"
}
}
],
Expand All @@ -107,7 +107,7 @@
"type": "module",
"compatibility": {
"minimum": "2.0.7",
"verified": "2.0.8",
"verified": "2.0.10",
"maximum": "2.0.99"
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/action-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
// Add spell slot info to group
this.addGroupInfo(bookGroupData)

const spellInfo = await (spellcastingEntry[1].getSpellData ? spellcastingEntry[1].getSpellData() : spellcastingEntry[1].getSheetData())
const spellInfo = await spellcastingEntry[1].getSheetData()
const activeLevels = spellInfo.groups.filter(level => level.active.length > 0)

for (const level of Object.entries(activeLevels)) {
Expand Down

0 comments on commit 1cd810d

Please sign in to comment.