From bcbdf12dca055c3de419d37710d8e0e0bb9bfd7d Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Thu, 15 Oct 2020 19:56:08 -0400 Subject: [PATCH] Fixed offline time stuff --- js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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