From 4116028c3c6c2d5571a9d278c6323add8e97b8e8 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 15 Jan 2022 09:56:46 +0800 Subject: potentially fix exp/hour and run/hour not tracking sometimes --- features/dungeonSolvers/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'features/dungeonSolvers/index.js') diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index 5a400a6..f56d8b5 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -65,7 +65,8 @@ class DungeonSolvers extends Feature { this.lastDungFinishes = [] this.lastDungExps = [] - this.registerChat("&r&r&r &r&8+&r&3${exp} Catacombs Experience&r", (exp)=>{ + this.registerChat("${start}+&r&3${exp} Catacombs Experience&r", (start, exp)=>{ + if(ChatLib.removeFormatting(start).replace(/ /gi, "").length > 0) return this.lastDungExps.push(parseFloat(exp.replace(/,/gi, ""))) if(this.lastDungExps.length > 5){ this.lastDungExps.shift() -- cgit