1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-12-12 09:21:36 +00:00

Fixed offline production more

This commit is contained in:
Harley White 2021-07-13 11:41:26 -04:00
parent 45125b2dec
commit 8f890e1957
2 changed files with 3 additions and 1 deletions

View file

@ -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.

View file

@ -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