added ns in CONFIG.l5r5e.systemName

This commit is contained in:
Vlyan
2023-01-08 10:32:35 +01:00
parent 5fbb34d882
commit 1ec9e65ca5
15 changed files with 61 additions and 62 deletions

View File

@@ -14,7 +14,7 @@ export class MigrationL5r5e {
* @return {boolean}
*/
static needUpdate(version) {
const currentVersion = game.settings.get("l5r5e", "systemMigrationVersion");
const currentVersion = game.settings.get(CONFIG.l5r5e.systemName, "systemMigrationVersion");
return !currentVersion || foundry.utils.isNewerVersion(version, currentVersion);
}
@@ -113,7 +113,7 @@ export class MigrationL5r5e {
}
// Set the migration as complete
await game.settings.set("l5r5e", "systemMigrationVersion", game.system.version);
await game.settings.set(CONFIG.l5r5e.systemName, "systemMigrationVersion", game.system.version);
ui.notifications.info(`L5R5e System Migration to version ${game.system.version} completed!`, {
permanent: true,
});