diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-08-25 20:22:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 20:22:56 +0800 |
commit | 4df86b6a7ef1069db7d4978696588f852c6526c8 (patch) | |
tree | 16efd93a3ea54691544f47be479950ce76fe841a /features/slayers/index.js | |
parent | e296d7d95b1c0f2971827f4bdb3b5c9873ed1456 (diff) | |
download | SoopyV2-4df86b6a7ef1069db7d4978696588f852c6526c8.tar.gz SoopyV2-4df86b6a7ef1069db7d4978696588f852c6526c8.tar.bz2 SoopyV2-4df86b6a7ef1069db7d4978696588f852c6526c8.zip |
fixes
- removed adding mobs to miniboss array in todo
= fixed a bug when "miniboss off when boss spawned" is on, minibosses won't be added into miniboss array
Diffstat (limited to 'features/slayers/index.js')
-rw-r--r-- | features/slayers/index.js | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index 3a06139..2a19982 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 : true) { 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 |