aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-25 22:25:39 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-25 22:25:39 +0800
commit24f2fddb6f70576bc101021637014af1bdbb68b6 (patch)
treec65d9c01a6d475e4737fc54ca67ae12e3c7d8fe3 /features/soopyGui/index.js
parentb1bc366e52cf719f0e3f01719fd787e7873baf84 (diff)
downloadSoopyV2-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.js2
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)