aboutsummaryrefslogtreecommitdiff
path: root/features/slayers
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-06-23 17:38:14 +0800
committerGitHub <noreply@github.com>2022-06-23 17:38:14 +0800
commit7b1dbc1c193e07e50dd21c56c694fdcc594389da (patch)
treee43a00580a6eeda165d9794bb9c9faa7df97295c /features/slayers
parent49701c97cc68364951a0af175c385884859f3f26 (diff)
downloadSoopyV2-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')
-rw-r--r--features/slayers/index.js4
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]);
}
}