Skip to content

Commit

Permalink
#1
Browse files Browse the repository at this point in the history
- #1: Fix undefined error.
  • Loading branch information
Larkinabout committed Dec 28, 2022
1 parent bbb2855 commit 80ca878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/system-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export default class SystemManager extends CoreSystemManager {
}
}
// If the 'Magic Items' module is active, then add a subcategory for it
if (game.modules.get('magicitems').active) {
if (game.modules.get('magicitems')?.active) {
defaults.default.subcategories.push({ id: 'magic-items', title: this.i18n('tokenActionHud.magicItems'), type: 'system' })
defaults.default.subcategories.sort((a, b) => a.id.localeCompare(b.id))
}
Expand Down

0 comments on commit 80ca878

Please sign in to comment.