aboutsummaryrefslogtreecommitdiff
path: root/features/slayers
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-27 16:58:41 +0800
committerGitHub <noreply@github.com>2022-08-27 16:58:41 +0800
commitecee707a11d1b64e926046a03063ada0e7972323 (patch)
tree8a97b43abf7dadadb0942272e877dba0870b6bbc /features/slayers
parent0d5c5d91f14a578eb9956ed8e43e249f4740db0b (diff)
parent3f23518de2b06ed530113bb2b8cdf22bfa857f74 (diff)
downloadSoopyV2-ecee707a11d1b64e926046a03063ada0e7972323.tar.gz
SoopyV2-ecee707a11d1b64e926046a03063ada0e7972323.tar.bz2
SoopyV2-ecee707a11d1b64e926046a03063ada0e7972323.zip
Merge pull request #48 from EmeraldMerchant/patch-47
fixes
Diffstat (limited to 'features/slayers')
-rw-r--r--features/slayers/index.js19
1 files changed, 1 insertions, 18 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 3a06139..b48a76e 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -505,7 +505,7 @@ class Slayers extends Feature {
}
}
}
- if (this.MinibossOffWhenBoss.getValue() && !this.bossSpawnedMessage) {
+ if ((this.MinibossOffWhenBoss.getValue() && !this.bossSpawnedMessage) || !this.MinibossOffWhenBoss.getValue()) {
if (this.BoxAroundMiniboss.getValue() && !this.bossSpawnedMessage && this.Miniboss[this.lastSlayerType]?.has(MobName) && !this.minibossEntity.map(a => a[0].getUUID().toString()).includes(name.getUUID().toString())) {
this.minibossEntity.push([name, this.lastSlayerType]);
}
@@ -585,23 +585,6 @@ class Slayers extends Feature {
}
- if (!this.bossSpawnedMessage && e instanceof net.minecraft.entity.item.EntityArmorStand) {
- let nameSplit = e[m.getCustomNameTag]().removeFormatting().split(" ")
- let mobName = `${nameSplit[0]} ${nameSplit[1]}`
- let MobName12 = `${nameSplit[1]} ${nameSplit[2]}`
- let MobName1234 = `${nameSplit[1]} ${nameSplit[2]} ${nameSplit[3]} ${nameSplit[4]}`
- 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]);
- }
- }
- if (this.areaMini[this.lastSlayerType]?.has(MobName12) || this.areaMini[this.lastSlayerType]?.has(MobName1234)) {
- if (this.BoxAroundAreaMiniboss.getValue() && !this.areaMiniEntity.map(a => a[0].getUUID().toString()).includes(e[m.getEntityId.Entity]().toString())) {
- this.areaMiniEntity.push([new Entity(e), this.lastSlayerType]);
- }
- }
- }
-
if (e instanceof net.minecraft.entity.item.EntityArmorStand && e[m.getCustomNameTag]() && this.blazeTowerDink.getValue()) {
let name = ChatLib.removeFormatting(e[m.getCustomNameTag]())
let isPiller = true