aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-15 12:33:41 +0800
committerGitHub <noreply@github.com>2022-07-15 12:33:41 +0800
commit677272b126ba3a52d79db5357439827a658afbfb (patch)
tree97893ebad1bd91b0a02379d46b25c825eb001f64
parent0f2698a62971cee93b2bb135042703bcc6762bc8 (diff)
parentb8b960f7feba78f8b010c69902dc344b4c0e2377 (diff)
downloadSoopyV2-677272b126ba3a52d79db5357439827a658afbfb.tar.gz
SoopyV2-677272b126ba3a52d79db5357439827a658afbfb.tar.bz2
SoopyV2-677272b126ba3a52d79db5357439827a658afbfb.zip
Merge pull request #31 from EmeraldMerchant/patch-32
"Cannot call method \"has\" of undefined"
-rw-r--r--features/slayers/index.js2
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]);
}