1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-05 15:51:05 +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
js/utils

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;