mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-01-29 14:51:40 +00:00
Fixed offline production
This commit is contained in:
parent
e7b83e634d
commit
95b9965c62
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
# The Modding Tree changelog:
|
||||
|
||||
- Fixed offline production.
|
||||
- Fixed formatting for small negative numbers.
|
||||
- Fixed divide by zero when a 0-second tick occurs.
|
||||
- "deactivated" now also affects achievement/milestone unlocking.
|
||||
|
|
|
@ -197,7 +197,7 @@ function load() {
|
|||
loadOptions();
|
||||
}
|
||||
|
||||
if (player.offlineProd) {
|
||||
if (options.offlineProd) {
|
||||
if (player.offTime === undefined)
|
||||
player.offTime = { remain: 0 };
|
||||
player.offTime.remain += (Date.now() - player.time) / 1000;
|
||||
|
|
Loading…
Add table
Reference in a new issue