added ns in CONFIG.l5r5e.systemName
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user