Make it so that the setting change doesn't error when no combat is started

This commit is contained in:
Oliver-Akins 2025-07-14 21:43:27 -06:00
parent 5d8a4495a1
commit eccfd96e67

View file

@ -47,7 +47,7 @@ export function registerMetaSettings() {
requiresReload: false,
default: `friendly`,
onChange: async () => {
await game.combat.setupTurns();
await game.combat?.setupTurns();
await ui.combat.render({ parts: [ `tracker` ] });
},
});