diff options
Diffstat (limited to 'features/hud')
| -rw-r--r-- | features/hud/index.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/features/hud/index.js b/features/hud/index.js index 947fef0..db12055 100644 --- a/features/hud/index.js +++ b/features/hud/index.js @@ -252,10 +252,11 @@ 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) => { - this.petElement.setText("&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet) - this.petText = "&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet - - this.lastSwappedPet = Date.now() + if (this.petText.split("] ")[1] === pet) { + this.petElement.setText("&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet) + this.petText = "&6Pet&7> &7[Lvl " + (level || "??") + "] " + pet + this.lastSwappedPet = Date.now() + } }) this.registerSoopy("apiLoad", this.apiLoad) |
