mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-06 15:41:08 +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.sb.auto === undefined) player.sb.auto = false
|
||||||
if (player.timePlayed === undefined) player.timePlayed = 0
|
if (player.timePlayed === undefined) player.timePlayed = 0
|
||||||
else if (typeof(player.timePlayed) == "string") {
|
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 (isNaN(player.timePlayed)) player.timePlayed = 0
|
||||||
if (player.timePlayed == 0) player.timePlayedReset = true
|
if (player.timePlayed == 0) player.timePlayedReset = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue