Always register the database listeners

This commit is contained in:
Oliver-Akins 2025-05-19 23:45:16 -06:00
parent 00829eae04
commit 64029b9508

View file

@ -7,7 +7,6 @@ Hooks.on(`ready`, () => {
// Alert GMs when the configured DB is invalid // Alert GMs when the configured DB is invalid
if (!(CONFIG.stats.db.prototype instanceof Database) && game.user.isGM) { if (!(CONFIG.stats.db.prototype instanceof Database) && game.user.isGM) {
ui.notifications.error(`The database handler does not conform to the required heirarchy, the stats tracker module will almost certainly not work correctly.`, { permanent: true }); ui.notifications.error(`The database handler does not conform to the required heirarchy, the stats tracker module will almost certainly not work correctly.`, { permanent: true });
} else {
CONFIG.stats.db.registerListeners();
}; };
CONFIG.stats.db.registerListeners();
}); });