aboutsummaryrefslogtreecommitdiff
path: root/features/hud
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-03 19:03:59 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-03 19:03:59 +0800
commit3525dce1d84a53dae0414388ba886b66323e2afd (patch)
tree1c3a0a37bcd11fd30131b0c834864ce60bf04221 /features/hud
parentc7f0e8bcbb3cabda3a9bb11f1235763d59c07875 (diff)
downloadSoopyV2-3525dce1d84a53dae0414388ba886b66323e2afd.tar.gz
SoopyV2-3525dce1d84a53dae0414388ba886b66323e2afd.tar.bz2
SoopyV2-3525dce1d84a53dae0414388ba886b66323e2afd.zip
small fixes
Diffstat (limited to 'features/hud')
-rw-r--r--features/hud/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/hud/index.js b/features/hud/index.js
index 3980dff..b01d156 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -284,7 +284,7 @@ class Hud extends Feature {
this.lastSwappedPet = Date.now()
})
this.registerChat("&r&aYour &r${pet} &r&alevelled up to level &r&9${level}&r&a!&r", (pet, level) => {
- if (this.petText.split("] ")[1] === pet) {
+ if (ChatLib.removeFormatting(this.petText.split("] ")[1].trim()) === ChatLib.removeFormatting(pet.trim())) {
this.petElement.setText("&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet)
this.petText = "&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet
this.lastSwappedPet = Date.now()