diff --git a/changelog.md b/changelog.md index 67c2617..de22e8f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,5 @@ # The Modding Tree changelog: - +- Fixed offline production. - Fixed formatting for small negative numbers. - Fixed divide by zero when a 0-second tick occurs. - "deactivated" now also affects achievement/milestone unlocking. diff --git a/js/utils/save.js b/js/utils/save.js index 324c1b2..66d3a46 100644 --- a/js/utils/save.js +++ b/js/utils/save.js @@ -197,7 +197,7 @@ function load() { loadOptions(); } - if (player.offlineProd) { + if (options.offlineProd) { if (player.offTime === undefined) player.offTime = { remain: 0 }; player.offTime.remain += (Date.now() - player.time) / 1000;