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 +++- metadata.json | 4 ++-- 2 files changed, 5 insertions(+), 3 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() diff --git a/metadata.json b/metadata.json index d790b5d..643ea13 100644 --- a/metadata.json +++ b/metadata.json @@ -5,8 +5,8 @@ "entry": "index.js", "description": "Soopy addons v2", "name": "SoopyV2", - "version": "2.0.14", - "versionId": 124, + "version": "2.0.15", + "versionId": 125, "requires": [ "soopyApis", "soopyAddonsData", -- cgit