diff --git a/js/game.js b/js/game.js index 134c052..4009268 100644 --- a/js/game.js +++ b/js/game.js @@ -673,6 +673,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 > 0) { let offlineDiff = Math.max(player.offTime.remain / 10, diff) player.offTime.remain -= offlineDiff