mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
Update game.js
This commit is contained in:
parent
7fd142dd23
commit
5f991dd413
1 changed files with 1 additions and 1 deletions
|
@ -1858,7 +1858,7 @@ function checkForVars() {
|
|||
if (player.sb.auto === undefined) player.sb.auto = false
|
||||
if (player.timePlayed === undefined) player.timePlayed = 0
|
||||
else if (typeof(player.timePlayed) == "string") {
|
||||
player.timePlayed = player.timePlayed.toNumber() || 0
|
||||
player.timePlayed = Number(player.timePlayed)
|
||||
if (isNaN(player.timePlayed)) player.timePlayed = 0
|
||||
if (player.timePlayed == 0) player.timePlayedReset = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue