aboutsummaryrefslogtreecommitdiff
path: root/features/lockedFeatures
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-14 18:41:09 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-14 18:41:09 +0800
commitf718bd5743701a7fb5f96e74a4df75145cc28789 (patch)
tree6105747f8242bf519f0014a401c3976031821d48 /features/lockedFeatures
parent957eed606234a4bc5e1b847580000a583ab9ee5b (diff)
downloadSoopyV2-f718bd5743701a7fb5f96e74a4df75145cc28789.tar.gz
SoopyV2-f718bd5743701a7fb5f96e74a4df75145cc28789.tar.bz2
SoopyV2-f718bd5743701a7fb5f96e74a4df75145cc28789.zip
beginning of dungeon ready gui + patch bug with guild event lb if u are in first or last place
Diffstat (limited to 'features/lockedFeatures')
-rw-r--r--features/lockedFeatures/index.js4
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)
}