diff --git a/changelog.md b/changelog.md index a26d053..750df08 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ # The Modding Tree changelog: +- Fixed offline production more. + # v2.6.5 - 7/7/21 - Fixed offline production. - Fixed formatting for small negative numbers. diff --git a/js/game.js b/js/game.js index 8fc3647..222df50 100644 --- a/js/game.js +++ b/js/game.js @@ -408,7 +408,7 @@ var interval = setInterval(function() { player.offTime.remain -= offlineDiff diff += offlineDiff } - if (!player.offlineProd || player.offTime.remain <= 0) player.offTime = undefined + if (!options.offlineProd || player.offTime.remain <= 0) player.offTime = undefined } if (player.devSpeed) diff *= player.devSpeed player.time = now