aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/betterGuis/index.js7
-rw-r--r--features/globalSettings/index.js2
-rw-r--r--features/hud/index.js2
3 files changed, 8 insertions, 3 deletions
diff --git a/features/betterGuis/index.js b/features/betterGuis/index.js
index 3c9f264..9f65dc4 100644
--- a/features/betterGuis/index.js
+++ b/features/betterGuis/index.js
@@ -155,6 +155,7 @@ class BetterGuis extends Feature {
//&c2532/2532❤ &a798&a❈ Defense &b2525/2525✎ &31ʬ&r (100)
//&c2532/2532❤ &f20&f❂ True Defense &b2414/2414✎ &3600ʬ&r (13)
//&c2665/2665❤ &a972&a❈ Defense &b2145/2145✎ &3600ʬ&r
+ //&c2,806/2,806❤ &a1,050&a❈ Defense &b1,945/1,945✎ &3600ʬ&r
this.registerEvent("guiRender", this.postGuiRender).registeredWhen(() => this.chestSearchBar.getValue())
this.registerEvent("guiMouseClick", this.guiMouseClick).registeredWhen(() => this.chestSearchBar.getValue())
this.registerEvent("guiKey", this.guiKey).registeredWhen(() => this.chestSearchBar.getValue())
@@ -166,13 +167,13 @@ class BetterGuis extends Feature {
if (curr.includes("Mana")) {
curr = curr.split("&b").pop()
}
- this.mana.set(parseInt(curr), 500)
- this.maxMana.set(parseInt(max), 500)
+ this.mana.set(parseInt(curr.replace(/,/g, "")), 500)
+ this.maxMana.set(parseInt(max.replace(/,/g, "")), 500)
if (Date.now() - this.lastOverFlow > 1000) this.overflowMana.set(0, 500)
}
actionbarOverflowMana(curr) {
- this.overflowMana.set(parseInt(curr), 500)
+ this.overflowMana.set(parseInt(curr.replace(/,/g, "")), 500)
this.lastOverFlow = Date.now()
}
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index 04ac413..429cb23 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -431,6 +431,8 @@ class GlobalSettings extends Feature {
updateItemLores() {
if (!this.itemWorth.getValue() && !this.showChampion.getValue() && !this.showHecatomb.getValue()) return;
+ if (!Client.currentGui.get()) return
+
let items = [...Player.getInventory().getItems(), ...Player.getContainer().getItems()]
items.forEach(i => {
diff --git a/features/hud/index.js b/features/hud/index.js
index ae1a631..8791cb4 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -165,6 +165,7 @@ class Hud extends Feature {
"experience_skill_enchanting": 60,
"experience_skill_mining": 60,
"experience_skill_taming": 50,
+ "experience_skill_carpentry": 50,
};
this.lastSkillLevel = {
@@ -176,6 +177,7 @@ class Hud extends Feature {
"experience_skill_enchanting": undefined,
"experience_skill_mining": undefined,
"experience_skill_taming": undefined,
+ "experience_skill_carpentry": undefined,
}
this.spotifyProcessId = -1