diff options
Diffstat (limited to 'features/lockedFeatures/index.js')
-rw-r--r-- | features/lockedFeatures/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/lockedFeatures/index.js b/features/lockedFeatures/index.js index ffe6faa..ca69a27 100644 --- a/features/lockedFeatures/index.js +++ b/features/lockedFeatures/index.js @@ -90,10 +90,10 @@ class LockedFeatures extends Feature { let timeTillIncrease = Infinity let timeTillDecrease = Infinity - if(nextProgress[1]-playerProgress[1] < 0){ + if(nextProgress && nextProgress[1]-playerProgress[1] < 0){ timeTillIncrease = ((nextProgress[0]-playerProgress[0])/(playerProgress[1]-nextProgress[1])*60*60*1000) } - if(prevProgress[1]-playerProgress[1] < 0){ + if(prevProgress && prevProgress[1]-playerProgress[1] < 0){ timeTillDecrease = ((playerProgress[0]-prevProgress[0])/(prevProgress[1]-playerProgress[1])*60*60*1000) } |