From cc714e8ae5397e6b451e9b50e36bfbead3d6ac41 Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Thu, 11 Aug 2022 22:21:39 +0800 Subject: changed how inGui thing works --- features/globalSettings/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index 61d2173..12d5a26 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -200,6 +200,12 @@ class GlobalSettings extends Feature { } }) let todoText = []; + if (this.guiOpened) { + this.maxAmount = 0 + this.todoPickUpLog = {}; + } else if (!this.warpedAgain) { + this.maxAmount = 12 + } if (pick) { Object.keys(this.todoPickUpLog).forEach((i) => { if (Math.abs(this.todoPickUpLog[i].timeStamp - now) > 5000 || !this.todoPickUpLog[i].Amount || this.todoPickUpLog[i].Amount == 0) { @@ -212,9 +218,6 @@ class GlobalSettings extends Feature { } else { this.todoPickUpLog = {}; } - if (this.guiOpened) { - this.todoPickUpLog = {}; - } // doesn't need to put setText() in if (pick) cuz if (!pick) it clears the todo log list this.sbaItemPickUpLogElement.setText(todoText.join("\n")) }) -- cgit