aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-09-25 14:04:40 -0400
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-09-25 14:04:40 -0400
commit9a6c56fc2360bbaa2f8ef13a55b6cf11db53bd17 (patch)
tree377864c74ff2c3412257d56ddd78394c5ccee554 /src/main
parent086f8b1c0f05eb8e48fc8e21cd7381b16f4ce475 (diff)
downloadSkytilsMod-9a6c56fc2360bbaa2f8ef13a55b6cf11db53bd17.tar.gz
SkytilsMod-9a6c56fc2360bbaa2f8ef13a55b6cf11db53bd17.tar.bz2
SkytilsMod-9a6c56fc2360bbaa2f8ef13a55b6cf11db53bd17.zip
temp fix for miniboss spawn alert
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt b/src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt
index d462f3d5..46f2a6d1 100644
--- a/src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt
+++ b/src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt
@@ -273,7 +273,11 @@ class SlayerFeatures {
}
if (packet is S29PacketSoundEffect) {
- if (hasSlayerText && slayerEntity == null && Skytils.config.slayerMinibossSpawnAlert && packet.soundName == "random.explode" && packet.volume == 0.6f && packet.pitch == 9 / 7f && GuiManager.title != "§cMINIBOSS") {
+ if (Skytils.config.slayerMinibossSpawnAlert && slayerEntity == null && packet.soundName == "random.explode" && packet.volume == 0.6f && packet.pitch == 9 / 7f && GuiManager.title != "§cMINIBOSS" && sidebarLines.any {
+ cleanSB(
+ it
+ ).contains("Slayer Quest")
+ }) {
createTitle("§cMINIBOSS", 20)
}
}