diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-25 22:25:39 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-25 22:25:39 +0800 |
commit | 24f2fddb6f70576bc101021637014af1bdbb68b6 (patch) | |
tree | c65d9c01a6d475e4737fc54ca67ae12e3c7d8fe3 /features/soopyGui/index.js | |
parent | b1bc366e52cf719f0e3f01719fd787e7873baf84 (diff) | |
download | SoopyV2-24f2fddb6f70576bc101021637014af1bdbb68b6.tar.gz SoopyV2-24f2fddb6f70576bc101021637014af1bdbb68b6.tar.bz2 SoopyV2-24f2fddb6f70576bc101021637014af1bdbb68b6.zip |
+ finish performance thing (mostly)
+ optimisations for slayer hide 0hp nametags
Diffstat (limited to 'features/soopyGui/index.js')
-rw-r--r-- | features/soopyGui/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/soopyGui/index.js b/features/soopyGui/index.js index 32ac1a7..1d4bc45 100644 --- a/features/soopyGui/index.js +++ b/features/soopyGui/index.js @@ -103,7 +103,7 @@ class SoopyGui extends Feature { this.buttonListElm.children = [] - this.getPages().forEach((p, i) => { + if (this.getPages()) this.getPages().forEach((p, i) => { let settingsButton = new ButtonWithArrow().setText("ยง0" + p.name).setLocation(0, 0.225 * i, 1, 0.2) settingsButton.addEvent(new SoopyMouseClickEvent().setHandler(() => { this.clickedOpen(p) })) this.buttonListElm.addChild(settingsButton) |