From 8f890e1957410255a834b85c51d33cfe1f078dc1 Mon Sep 17 00:00:00 2001 From: Harley White Date: Tue, 13 Jul 2021 11:41:26 -0400 Subject: [PATCH] Fixed offline production more --- changelog.md | 2 ++ js/game.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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