From efc71b6847f252cccd0ccf536a6db6e9fe6fad96 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Wed, 29 May 2024 17:36:09 +1000 Subject: Get ascension rope at selectable cold level (#1905) --- .../skyhanni/features/mining/MiningNotifications.kt | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/mining') diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/MiningNotifications.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/MiningNotifications.kt index 012a13240..370fd1815 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/MiningNotifications.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/MiningNotifications.kt @@ -54,10 +54,6 @@ object MiningNotifications { "goblin.diamondspawn", "§6A §r§bDiamond Goblin §r§6has spawned!" ) - private val frostbitePattern by patternGroup.pattern( - "cold.frostbite", - "§9§lBRRR! §r§bYou're freezing! All you can think about is getting out of here to a warm campfire\\.\\.\\." - ) private val config get() = SkyHanniMod.feature.mining.notifications @@ -73,13 +69,6 @@ object MiningNotifications { scrapDrop.matches(message) -> sendNotification(MiningNotificationList.SCRAP) goldenGoblinSpawn.matches(message) -> sendNotification(MiningNotificationList.GOLDEN_GOBLIN) diamondGoblinSpawn.matches(message) -> sendNotification(MiningNotificationList.DIAMOND_GOBLIN) - frostbitePattern.matches(message) -> { - if (IslandType.MINESHAFT.isInIsland() && config.getAscensionRope) { - runDelayed(0.5.seconds) { - GetFromSackAPI.getFromChatMessageSackItems(ASCENSION_ROPE) - } - } - } } } @@ -93,6 +82,11 @@ object MiningNotifications { hasSentCold = true sendNotification(MiningNotificationList.COLD) } + if (IslandType.MINESHAFT.isInIsland() && config.getAscensionRope && config.coldAmount == event.cold) { + runDelayed(0.5.seconds) { + GetFromSackAPI.getFromChatMessageSackItems(ASCENSION_ROPE) + } + } } @SubscribeEvent -- cgit