aboutsummaryrefslogtreecommitdiff
path: root/features/betterGuis
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-26 17:45:03 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-26 17:45:03 +0800
commitcb7aa1fe284e8230c1c297ac4f23b615c4fbf61e (patch)
tree745500b68ae425489a163d216c15332f7d77072c /features/betterGuis
parent71d4a2dc68577005f933c8101eaaabc15d9a3c46 (diff)
downloadSoopyV2-cb7aa1fe284e8230c1c297ac4f23b615c4fbf61e.tar.gz
SoopyV2-cb7aa1fe284e8230c1c297ac4f23b615c4fbf61e.tar.bz2
SoopyV2-cb7aa1fe284e8230c1c297ac4f23b615c4fbf61e.zip
Quick museum performance optimisation
Diffstat (limited to 'features/betterGuis')
-rw-r--r--features/betterGuis/museumGui.js4
1 files changed, 3 insertions, 1 deletions
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()