Finish removing the Range bucket type that was accidentally still able to be created
This commit is contained in:
parent
3fc8b654c7
commit
8f993adb47
6 changed files with 34 additions and 52 deletions
|
|
@ -47,9 +47,9 @@ Hooks.on(`init`, () => {
|
|||
manager: TableManager,
|
||||
};
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
CONFIG.stats.db = MemoryDatabase;
|
||||
};
|
||||
// if (import.meta.env.DEV) {
|
||||
// CONFIG.stats.db = MemoryDatabase;
|
||||
// };
|
||||
|
||||
game.modules.get(__ID__).api = api;
|
||||
if (game.settings.get(__ID__, `globalAPI`)) {
|
||||
|
|
|
|||
|
|
@ -29,10 +29,10 @@ Hooks.on(`ready`, () => {
|
|||
);
|
||||
|
||||
// Fire and forget
|
||||
CONFIG.stats.db.migrateData(notif)
|
||||
CONFIG.stats.db.migrateData(lastVersion, notif)
|
||||
.then(() => {
|
||||
game.settings.set(__ID__, `lastVersion`, __VERSION__);
|
||||
setTimeout(() => ui.notifications.remove(notif), 500);
|
||||
setTimeout(() => ui.notifications.remove(notif), 5_000);
|
||||
});
|
||||
} else {
|
||||
ui.notifications.error(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue