From 24f2fddb6f70576bc101021637014af1bdbb68b6 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 25 Jun 2022 22:25:39 +0800 Subject: + finish performance thing (mostly) + optimisations for slayer hide 0hp nametags --- features/soopyGui/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/soopyGui/index.js') 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) -- cgit