From e5536cd6e377c24ef73942fdaf88a962981441bd Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Thu, 15 Sep 2022 11:35:20 +0800 Subject: fixed box around miniboss off when boss = made miniboss off when boss actually stop rendering already existing boxes --- features/slayers/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'features') diff --git a/features/slayers/index.js b/features/slayers/index.js index 3480982..1b890d4 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -558,6 +558,10 @@ class Slayers extends Feature { } }); } + if (this.MinibossOffWhenBoss.getValue() && this.bossSpawnedMessage && (this.minibossEntity.length > 0 || this.areaMiniEntity.length > 0)) { + this.minibossEntity.forEach(m => m.delete()) + this.areaMiniEntity.forEach(m => m.delete()) + } } tick() { -- cgit