aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-02-04 16:10:29 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-02-04 16:10:29 +0800
commit7882632751f1132e67dcee92389e82317b8db123 (patch)
tree833899d85393b046304ffb2f5db50e52ddddd005 /features/globalSettings/index.js
parentf724d7e9f5ec6d5e2f004a240f5117a41a752dc8 (diff)
downloadSoopyV2-7882632751f1132e67dcee92389e82317b8db123.tar.gz
SoopyV2-7882632751f1132e67dcee92389e82317b8db123.tar.bz2
SoopyV2-7882632751f1132e67dcee92389e82317b8db123.zip
maby fix buttons like settings not showing up in /soopyv2 menu
Diffstat (limited to 'features/globalSettings/index.js')
-rw-r--r--features/globalSettings/index.js4
1 files changed, 2 insertions, 2 deletions
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