aboutsummaryrefslogtreecommitdiff
path: root/features/betterGuis/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-26 17:28:51 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-26 17:28:51 +0800
commit71d4a2dc68577005f933c8101eaaabc15d9a3c46 (patch)
tree3d619b12a3ad580715f51238bddd47648bc69e58 /features/betterGuis/index.js
parent8ca119397a30a3e32934d822a559a0e9ed5d8f82 (diff)
downloadSoopyV2-71d4a2dc68577005f933c8101eaaabc15d9a3c46.tar.gz
SoopyV2-71d4a2dc68577005f933c8101eaaabc15d9a3c46.tar.bz2
SoopyV2-71d4a2dc68577005f933c8101eaaabc15d9a3c46.zip
Finish museum gui
Diffstat (limited to 'features/betterGuis/index.js')
-rw-r--r--features/betterGuis/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/features/betterGuis/index.js b/features/betterGuis/index.js
index d13cf68..2150db2 100644
--- a/features/betterGuis/index.js
+++ b/features/betterGuis/index.js
@@ -98,6 +98,8 @@ class BetterGuis extends Feature {
if(this.museumGuiEnabled.getValue()) this.museumGui.guiOpened.call(this.museumGui, event)
})
this.registerStep(true, 10, this.step)
+ this.registerEvent("worldUnload", ()=>{this.museumGui.saveMuseumCache.call(this.museumGui)})
+ this.registerStep(false, 30, ()=>{this.museumGui.saveMuseumCache.call(this.museumGui)})
}
guiClicked(mouseX, mouseY, button, gui, event){
@@ -108,7 +110,7 @@ class BetterGuis extends Feature {
let hoveredSlotId = hoveredSlot.field_75222_d
- logger.logMessage(hoveredSlotId, 4)
+ // logger.logMessage(hoveredSlotId, 4)
if(this.guiSlotClicked(ChatLib.removeFormatting(Player.getOpenedInventory().getName()), hoveredSlotId)){
cancel(event)