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:
parent
e7b83e634d
commit
95b9965c62
2 changed files with 2 additions and 2 deletions
js/utils
|
@ -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
Add a link
Reference in a new issue