diff --git a/module/rdd-timestamp.js b/module/rdd-timestamp.js index 37ec8504..d9ca9b80 100644 --- a/module/rdd-timestamp.js +++ b/module/rdd-timestamp.js @@ -99,7 +99,7 @@ export class RdDTimestamp { return `${signe.label}` } - static handleTimestampEditor(html, path, consumeTimestamp = async (path, timestamp) => {}) { + static handleTimestampEditor(html, path, consumeTimestamp = async (path, timestamp) => { }) { const fields = { annee: html.find(`input[name="${path}.annee"]`), mois: html.find(`select[name="${path}.mois"]`), @@ -157,14 +157,13 @@ export class RdDTimestamp { static getWorldTime() { let worldTime = game.settings.get(SYSTEM_RDD, WORLD_TIMESTAMP_SETTING); - if (worldTime.indexJour && worldTime.heureRdD) { + if (worldTime.indexJour != undefined && worldTime.heureRdD != undefined) { // Migration worldTime = { indexDate: worldTime.indexJour, indexMinute: worldTime.heureRdD * 120 + worldTime.minutesRelative }; RdDTimestamp.setWorldTime(new RdDTimestamp(worldTime)) - } return new RdDTimestamp(worldTime); } diff --git a/system.json b/system.json index abc5afb5..e404b2ef 100644 --- a/system.json +++ b/system.json @@ -1,8 +1,8 @@ { "id": "foundryvtt-reve-de-dragon", "title": "RĂªve de Dragon", - "version": "10.5.0", - "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.5.0.zip", + "version": "10.5.1", + "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.5.1.zip", "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json", "compatibility": { "minimum": "10",