diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-20 23:00:04 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-06-20 23:00:04 +0200 |
commit | f1c382bebd0e4856ea7f28732d143c44c881c182 (patch) | |
tree | 8f96ab8bf05eff66680491a29c60949ee7013f18 /src/main/java/at/hannibal2/skyhanni | |
parent | d662ef5586a091f496faed77050cb2d82e51975c (diff) | |
download | skyhanni-f1c382bebd0e4856ea7f28732d143c44c881c182.tar.gz skyhanni-f1c382bebd0e4856ea7f28732d143c44c881c182.tar.bz2 skyhanni-f1c382bebd0e4856ea7f28732d143c44c881c182.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt | 5 |
1 files changed, 4 insertions, 1 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 4924d0fa7..6c4050581 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,16 @@ 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 if (!mob.isInRender()) return DelayedRun.runNextTick { - if (lastChatTime.passedSince() > timeOut && config.summonMessages) { + if (lastChatTime.passedSince() > timeOut) { ChatUtils.chat("Your Summoning Mob just §cdied!") } } |