foundryvtt / black-flag

The official repository for Kobold Press's "Black Flag" game system implementation in Foundry Virtual Tabletop.
MIT License
10 stars 5 forks source link

Set default value for `CONFIG.SYSTEM.CLASS_DOCUMENTS` #21

Closed stwlam closed 1 year ago

stwlam commented 1 year ago

Currently BlackFlagActor will assign a value to CONFIG.SYSTEM.CLASS_DOCUMENTS only if CONFIG.SYSTEM.BACKGROUND_DOCUMENTS is empty. This is not guaranteed, so subsequent checks of CLASS_DOCUMENTS are at risk of throwing unhandled exceptions if no actor has called its own #loadForeignDocuments method.