aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt5
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!")
}
}