From a4c24726296f98e525378aea5a768e693e0b3883 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 20 Jun 2024 23:16:16 +0200 Subject: fixed small logical thingy --- .../hannibal2/skyhanni/features/summonings/SummoningMobManager.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt b/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt index 6c4050581..a8c42c09c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt @@ -89,13 +89,14 @@ object SummoningMobManager { @SubscribeEvent fun onMobDeSpawn(event: MobEvent.DeSpawn.Summon) { - // since MobEvent.DeSpawn can be fired while outside sb - if (!LorenzUtils.inSkyBlock) return - if (!config.summonMessages) return val mob = event.mob if (mob !in mobs) return mobs -= mob + // since MobEvent.DeSpawn can be fired while outside sb + if (!LorenzUtils.inSkyBlock) return + if (!config.summonMessages) return + if (!mob.isInRender()) return DelayedRun.runNextTick { if (lastChatTime.passedSince() > timeOut) { -- cgit