From 7882632751f1132e67dcee92389e82317b8db123 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Fri, 4 Feb 2022 16:10:29 +0800 Subject: maby fix buttons like settings not showing up in /soopyv2 menu --- features/globalSettings/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features/globalSettings/index.js') diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index a958628..f98bab6 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -55,7 +55,7 @@ class Hud extends Feature { if(!this.firstLoadPageData.shown){ new Thread(()=>{ - while(!World || !this.FeatureManager.finishedLoading){ + while(!World.isLoaded() || !this.FeatureManager.finishedLoading){ Thread.sleep(100) } Thread.sleep(500) @@ -147,7 +147,7 @@ class Hud extends Feature { } showFirstLoadPage(){ - if(!this.ranFirstLoadThing && World && !this.firstLoadPageData.shown){ + if(!this.ranFirstLoadThing && World.isLoaded() && !this.firstLoadPageData.shown){ ChatLib.chat(this.FeatureManager.messagePrefix + "Opening first load page, if you accidentally close it run /soopyv2 and click the button") ChatLib.command("soopyv2 first_load_thing", true) this.ranFirstLoadThing = true -- cgit