From f718bd5743701a7fb5f96e74a4df75145cc28789 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 14 Apr 2022 18:41:09 +0800 Subject: beginning of dungeon ready gui + patch bug with guild event lb if u are in first or last place --- features/lockedFeatures/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features/lockedFeatures') 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) } -- cgit