mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-22 00:21:32 +00:00
Fixed offline time stuff
This commit is contained in:
parent
33f493f593
commit
bcbdf12dca
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue