aboutsummaryrefslogtreecommitdiff
path: root/features/betterGuis
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-06 16:29:41 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-06 16:29:41 +0800
commit6accfc8d22f8873040f347abaf45e9008686a203 (patch)
treef37fc08345f4eb162ce0e4d08c0c127d71552cbe /features/betterGuis
parentc6582418087392ffc81ac49db7a5ad8988815863 (diff)
downloadSoopyV2-6accfc8d22f8873040f347abaf45e9008686a203.tar.gz
SoopyV2-6accfc8d22f8873040f347abaf45e9008686a203.tar.bz2
SoopyV2-6accfc8d22f8873040f347abaf45e9008686a203.zip
Make a utils thing at allows for human readable mappings
Diffstat (limited to 'features/betterGuis')
-rw-r--r--features/betterGuis/index.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/features/betterGuis/index.js b/features/betterGuis/index.js
index 2150db2..29a7399 100644
--- a/features/betterGuis/index.js
+++ b/features/betterGuis/index.js
@@ -2,6 +2,7 @@
/// <reference lib="es2015" />
import Feature from "../../featureClass/class";
import logger from "../../logger";
+import { f } from "../../mappings/mappings";
import ToggleSetting from "../settings/settingThings/toggle";
import MuseumGui from "./museumGui.js";
@@ -16,9 +17,9 @@ class BetterGuis extends Feature {
this.museumGui = new MuseumGui()
this.replaceSbMenuClicks = new ToggleSetting("Improve Clicks on SBMENU", "This will change clicks to middle clicks, AND use commands where possible (eg /pets)", true, "sbmenu_clicks", this)
- this.reliableSbMenuClicks = {getValue: ()=>false}//removed because hypixel fixed may add back later //new ToggleSetting("Make SBMENU clicks reliable", "This will delay clicks on sbmenu to time them so they dont get canceled", true, "sbmenu_time", this)
+ this.reliableSbMenuClicks = {getValue: ()=>false}//removed because hypixel fixed, code kept incase hypixel adds back bug later //new ToggleSetting("Make SBMENU clicks reliable", "This will delay clicks on sbmenu to time them so they dont get canceled", true, "sbmenu_time", this)
- this.museumGuiEnabled = /*{getValue: ()=>false} //Removed because not finished yet*/ new ToggleSetting("Custom Museum GUI", "Custom gui for the Museum", true, "custom_museum_enabled", this)
+ this.museumGuiEnabled = new ToggleSetting("Custom Museum GUI", "Custom gui for the Museum", true, "custom_museum_enabled", this)
this.lastWindowId = 0
this.shouldHold = 10
@@ -108,7 +109,7 @@ class BetterGuis extends Feature {
let hoveredSlot = gui.getSlotUnderMouse()
if(!hoveredSlot) return
- let hoveredSlotId = hoveredSlot.field_75222_d
+ let hoveredSlotId = hoveredSlot[f.slotNumber]
// logger.logMessage(hoveredSlotId, 4)