diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-06-23 17:38:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 17:38:14 +0800 |
commit | 7b1dbc1c193e07e50dd21c56c694fdcc594389da (patch) | |
tree | e43a00580a6eeda165d9794bb9c9faa7df97295c /features/slayers/index.js | |
parent | 49701c97cc68364951a0af175c385884859f3f26 (diff) | |
download | SoopyV2-7b1dbc1c193e07e50dd21c56c694fdcc594389da.tar.gz SoopyV2-7b1dbc1c193e07e50dd21c56c694fdcc594389da.tar.bz2 SoopyV2-7b1dbc1c193e07e50dd21c56c694fdcc594389da.zip |
fixed a issue for miniboss array
- fixed one of the parts using entity instead of mcentity
Diffstat (limited to 'features/slayers/index.js')
-rw-r--r-- | features/slayers/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index e471f94..2b5ad8e 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -385,7 +385,9 @@ 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.BoxAroundMiniboss.getValue() && !this.minibossEntity.map(a=>a[0].getUUID().toString()).includes(new Entity(mobName.getEntity()).getUUID().toString())) { + ChatLib.chat("a") + ChatLib.chat(!this.minibossEntity.map(a=>a[0].getUUID().toString()).includes(e[m.getEntityId.Entity]().toString())) + 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]); } } |