From 59a6730bc0c85d82d9546ec16944768e677eb921 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 20 Jan 2022 02:40:21 +0800 Subject: make dungeonsolvers only load ping when doing dungeons --- features/dungeonSolvers/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index 2757bd0..83c8e24 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -366,7 +366,7 @@ class DungeonSolvers extends Feature { this.todoE = []; - if (Date.now() - this.lastPingCheck > 60000 * 30 || (Date.now() - this.lastPingCheck > 60000 && this.lastPings.includes(undefined))) { + if (Date.now() - this.lastPingCheck > 60000 * 30 || (Date.now() - this.lastPingCheck > 60000 && this.lastPings.includes(undefined)) && this.bloodX!== -1) { this.lastPingCheck = Date.now(); ChatLib.command("whereami"); this.checkingPing = true; diff --git a/index.js b/index.js index 956c65c..aa16f17 100644 --- a/index.js +++ b/index.js @@ -23,9 +23,9 @@ if(FileLib.read("soopyAddonsData", "deletesoopyv1please.txt") === "true"){ if(FileLib.read("soopyAddonsData", "firstload.txt") !== "true"){ new Thread(()=>{ ChatLib.chat("&7Loading SoopyV2 required modules...") //idk what to say to chat, but it requires an extra ct load after starting to load stuff like mappings + FileLib.write("soopyAddonsData", "firstload.txt", "true") Thread.sleep(2000) - FileLib.write("soopyAddonsData", "firstload.txt", "true") ChatLib.command("ct reload", true) }).start() -- cgit