1
0
Fork 0
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:
Aarex Tiaokhiao 2020-09-12 10:44:34 -04:00
parent 7fd142dd23
commit 5f991dd413

View file

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