From b8b960f7feba78f8b010c69902dc344b4c0e2377 Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Thu, 14 Jul 2022 05:12:09 +0800 Subject: "Cannot call method \"has\" of undefined" fixed that^ --- features/slayers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/slayers/index.js b/features/slayers/index.js index bfcab1d..e0ce0a8 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -499,7 +499,7 @@ class Slayers extends Feature { if (!this.bossSpawnedMessage && e instanceof net.minecraft.entity.item.EntityArmorStand) { let mobName = `${e[m.getCustomNameTag]().removeFormatting().split(" ")[0]} ${e[m.getCustomNameTag]().removeFormatting().split(" ")[1]}` - if (this.Miniboss[this.lastSlayerType].has(mobName)) { + if (this.Miniboss[this.lastSlayerType]?.has(mobName)) { if (this.BoxAroundMiniboss.getValue() && !this.minibossEntity.map(a => a[0].getUUID().toString()).includes(e[m.getEntityId.Entity]().toString())) { this.minibossEntity.push([new Entity(e), this.lastSlayerType]); } -- cgit