diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-20 23:16:16 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-20 23:16:16 +0200 |
commit | a4c24726296f98e525378aea5a768e693e0b3883 (patch) | |
tree | 26314b9778111fc1c83ae969d3eb3523cba7fd67 /src/main/java/at/hannibal2/skyhanni/features | |
parent | 7316898869c14a49989733e2a52a7f1d73ce6ec1 (diff) | |
download | skyhanni-a4c24726296f98e525378aea5a768e693e0b3883.tar.gz skyhanni-a4c24726296f98e525378aea5a768e693e0b3883.tar.bz2 skyhanni-a4c24726296f98e525378aea5a768e693e0b3883.zip |
fixed small logical thingy
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt | 7 |
1 files changed, 4 insertions, 3 deletions
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) { |