From cb7aa1fe284e8230c1c297ac4f23b615c4fbf61e Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Fri, 26 Nov 2021 17:45:03 +0800 Subject: Quick museum performance optimisation --- features/betterGuis/museumGui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'features/betterGuis') diff --git a/features/betterGuis/museumGui.js b/features/betterGuis/museumGui.js index 8739b2d..a6b0474 100644 --- a/features/betterGuis/museumGui.js +++ b/features/betterGuis/museumGui.js @@ -30,6 +30,8 @@ class MuseumGui { this.soopyGui = new SoopyGui() + this.soopyGui.optimisedLocations = true + this.soopyGui.element.addEvent(new SoopyKeyPressEvent().setHandler((...args)=>{ this.keyPress(...args) })) @@ -884,7 +886,7 @@ class MuseumGui { if(name === "Your Museum" && !this.isInMuseum){ if(event.gui && event.gui.field_147002_h) Player.getPlayer().field_71070_bA = event.gui.field_147002_h - + this.isInMuseum = true this.soopyGui.open() -- cgit