1
0
Fork 0
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:
Harley White 2021-07-07 12:58:30 -04:00
parent e7b83e634d
commit 95b9965c62
2 changed files with 2 additions and 2 deletions

View file

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

View file

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