diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-07-14 05:12:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-14 05:12:09 +0800 |
commit | b8b960f7feba78f8b010c69902dc344b4c0e2377 (patch) | |
tree | 9e811d43c70cfc15c5aaa4831e8c35d3cb9ed081 /features | |
parent | 99dbeef6058f8e30e763fd1b05470a36defa3d46 (diff) | |
download | SoopyV2-b8b960f7feba78f8b010c69902dc344b4c0e2377.tar.gz SoopyV2-b8b960f7feba78f8b010c69902dc344b4c0e2377.tar.bz2 SoopyV2-b8b960f7feba78f8b010c69902dc344b4c0e2377.zip |
"Cannot call method \"has\" of undefined"
fixed that^
Diffstat (limited to 'features')
-rw-r--r-- | features/slayers/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } |