diff --git a/js/game.js b/js/game.js index f07f13b..c662017 100644 --- a/js/game.js +++ b/js/game.js @@ -347,7 +347,7 @@ var interval = setInterval(function() { let now = Date.now() let diff = (now - player.time) / 1e3 if (player.offTime !== undefined) { - if (player.offTime.remain > modInfo.offlineLimit * 3600000) player.offlineTime.remain = modInfo.offlineLimit * 3600000 + if (player.offTime.remain > modInfo.offlineLimit * 3600000) player.offTime.remain = modInfo.offlineLimit * 3600000 if (player.offTime.remain > 0) { let offlineDiff = Math.max(player.offTime.remain / 10, diff) player.offTime.remain -= offlineDiff