aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-06-24 18:56:36 +0800
committerGitHub <noreply@github.com>2022-06-24 18:56:36 +0800
commit056ffe36e1fa3c80a77cd4d1d8d03960efb7d779 (patch)
tree71f99b76eb5e494b9f78a59dfd96132f64c80f11 /features
parentab55667da0bbf4408438b2b5fd060296d1148419 (diff)
downloadSoopyV2-056ffe36e1fa3c80a77cd4d1d8d03960efb7d779.tar.gz
SoopyV2-056ffe36e1fa3c80a77cd4d1d8d03960efb7d779.tar.bz2
SoopyV2-056ffe36e1fa3c80a77cd4d1d8d03960efb7d779.zip
added a check to reduce lag
^
Diffstat (limited to 'features')
-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 b9f4a1e..910d0ef 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -306,7 +306,7 @@ class Slayers extends Feature {
if (this.BoxAroundMiniboss.getValue() || this.betterHideDeadEntity.getValue()) {
World.getAllEntitiesOfType(net.minecraft.entity.item.EntityArmorStand).forEach(name => {
let MobName = `${name.getName().removeFormatting().split(" ")[0]} ${name.getName().removeFormatting().split(" ")[1]}`
- if (this.BoxAroundMiniboss.getValue() && !this.bossSpawnedMessage && this.Miniboss[this.lastSlayerType]?.has(MobName)) {
+ 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([new Entity(name.getEntity()), this.lastSlayerType]);
}
if (this.betterHideDeadEntity.getValue()) {