mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-12-04 13:51:31 +00:00
Fixed offline production more
This commit is contained in:
parent
45125b2dec
commit
8f890e1957
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
# The Modding Tree changelog:
|
# The Modding Tree changelog:
|
||||||
|
|
||||||
|
- Fixed offline production more.
|
||||||
|
|
||||||
# v2.6.5 - 7/7/21
|
# v2.6.5 - 7/7/21
|
||||||
- Fixed offline production.
|
- Fixed offline production.
|
||||||
- Fixed formatting for small negative numbers.
|
- Fixed formatting for small negative numbers.
|
||||||
|
|
|
@ -408,7 +408,7 @@ var interval = setInterval(function() {
|
||||||
player.offTime.remain -= offlineDiff
|
player.offTime.remain -= offlineDiff
|
||||||
diff += 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
|
if (player.devSpeed) diff *= player.devSpeed
|
||||||
player.time = now
|
player.time = now
|
||||||
|
|
Loading…
Reference in a new issue