From 3525dce1d84a53dae0414388ba886b66323e2afd Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Wed, 3 Aug 2022 19:03:59 +0800 Subject: small fixes --- features/hud/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/hud') 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() -- cgit