diff --git a/CHANGELOG.md b/CHANGELOG.md index adfdaf1598d3..1057e56e9780 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ + Added Sea Creature Tracker. - hannibal2 + Allows to only show single variants, e.g. water or lava or winter. +#### Dungeon Features + ++ Hide particles and damage splashes during the terracotta phase in dungeons F6 and M6. - hannibal2 + #### Crimson Isle Features + Added Volcano Explosivity in Crimson Isle. - Erymanthus @@ -88,6 +92,7 @@ + This helps to farm the correct amount, especially when in the early game. + Made blocks per second calculation more accurate immediately after starting to farm. - hannibal2 + Warn to open visitor inventory again after partially serving Spaceman. - alexia ++ Updating the Garden Optimal Speed Display and Warning immediately when changing the setting. - hannibal2 #### Rift Changes @@ -130,6 +135,7 @@ + Added options to change exactly what part of the Dungeon Chat Filter should be used. - Wambo + Hide F3/M3 guardian Damage Indicators once the professor spawns. - hannibal2 + Added exact names for the floor 6 giants in the Damage Indicator. - hannibal2 ++ Show the laser phase timer even during the hit phase after a successful damage phase skip. - hannibal2 #### Diana Changes @@ -144,11 +150,20 @@ + Earned mystery dust. - alexia + Added the fire sale ended message to the Fire Sale Chat Hider. - hannibal2 +#### Command Changes + ++ Added /pd short command for party disband. - Empa + +#### Config Changes + ++ Using a better title for Area Boss features. - hannibal2 + #### Misc Changes + Tia Relay Helper: Suggest /togglemusic. - alexia + Added option to ignore Everything Chroma in the chat. - VixidDev + Added Item Ability Cooldown support for Talbot's Theodolite (the Farming Island Trapper tracker thing). - Erymanthus ++ Fewer election API updates, fewer election API errors. - CalMWolfs ### Fixes @@ -165,6 +180,7 @@ + Fixed grammar in Jacob Contest chat messages. - alexia + Fixed rarity error for items thrown around when using Sprayanator. - hannibal2 + Added cooldown to Garden Warp Commands. - Empa ++ Fixed the detection of Anita and Jacob visitors. - hannibal2 #### Combat Fixes @@ -176,6 +192,8 @@ + Fixed Fire Veil Wand circle shows on left-clicking. - hannibal2 + Fixed Ashfang Freeze Cooldown being off by one second. Fixed Fire Veil line gets shown even while frozen. - hannibal2 + Fixed time until the next area mini boss spawns being off by one second. - hannibal2 ++ Fixed Reputation Helper in Crimson Isle showing incorrect sack amount. - CalMWolfs ++ Fixed the ender slayer laser phase timer being inaccurate in the Damage Indicator. - hannibal2 #### Dungeon Fixes @@ -186,12 +204,14 @@ + Fixed Bonzo phase 1 does not get detected properly for Damage Indicator. - hannibal2 + Fixed Dungeon Clean End sometimes not deactivating when chest spawned. - hannibal2 + Fixed F3/M3 guardian spawn timer in Damage Indicator. - hannibal2 ++ Fixed Highlight Clicked Chest in water puzzle room not showing. - hannibal2 #### Diana Fixes + Fixed close griffin burrow detection with particles failing sometimes. - hannibal2 + Fixed Diana mobs being invisible because of Fix Ghost Entities and four season pet skin. - hannibal2 + Fixed a rare bug that leaves ghost burrows around. - hannibal2 ++ Properly deleting Diana target markers when manually clearing griffin burrows by talking to Diana NPC. - hannibal2 #### Mining Fixes @@ -219,6 +239,7 @@ + Fixed Crap Hat of Celebration not getting detected as accessory in Hide Not Clickable Items. - Empa + Fixed rune price calculation in Chest Value. - hannibal2 + Fixed Power Stone Guide Highlight shows in other inventories when exiting via command. - hannibal2 ++ Added options to hide Helmet Skins, Armor Dyes or Runes from Estimated Item Value Calculation. - hannibal2 #### Bingo Fixes @@ -229,12 +250,15 @@ #### Chat Fixes + Fixed poisoned candy potion chat message not getting compacted. - alexia ++ Fixed the fire sale chat message hider again. - CalMWolfs #### GUI Fixes + Fixed items in SkyHanni GUI elements rendering over minecraft menus. - Thunderblade73 + Fixed GUI Editor hotkey working while inside a NEU PV text box. - Thunderblade73 + Fixed render overlapping problem with chat, SkyHanni GUIs and title. - Thunderblade73 ++ Fixed GUI positions moving into the bottom-right corner when leaving the GUI position editor while pressing the mouse + button on next reopen. - hannibal2 #### Winter Fixes @@ -250,6 +274,7 @@ + Fixed a typo in Odger Waypoint config. - Empa + Fixed NPC typos in config. - absterge + Fixed rare error in Harp Features. - Thunderblade73 ++ Fixed some getItemStack errors. - CalMWolfs ### Technical Changes @@ -297,6 +322,10 @@ + Better error handling when an unknown crimson isle quest is detected. - hannibal2 + Marked old number formatting code as deprecated. - hannibal2 + Added the SkyHanni icon to the IntelliJ profile view. - Erymanthus ++ Fixed key name in utils patterns. - CalMWolfs ++ Using NEUInternalName in the Reputation Helper Quest. - CalMWolfs ++ Limit RAM to 4 GB in the developement enviroment. - CalMWolfs + + This is just the default and can be changed if needed. ## Version 0.22 diff --git a/FEATURES.md b/FEATURES.md index 811d58bfd90d..c96ecc51e8a6 100644 --- a/FEATURES.md +++ b/FEATURES.md @@ -79,6 +79,7 @@ Use `/sh` or `/skyhanni` to open the SkyHanni config in game. + Color class levels in the tab list. (Also hide rank colors and emblems because who needs that in dungeons anyway?) + Soulweaver Skull Hider in the Dungeon Object Hider. - nea + Hide the annoying soulweaver skulls that float around you if you have the soulweaver gloves equipped. ++ Hide particles and damage splashes during the terracotta phase in dungeons F6 and M6. - hannibal2
diff --git a/build.gradle.kts b/build.gradle.kts index 90e8ddd57d22..484c6fe556da 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,7 +14,7 @@ plugins { } group = "at.hannibal2.skyhanni" -version = "0.23.Beta.15" +version = "0.23.Beta.16" val gitHash by lazy { val baos = ByteArrayOutputStream() diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt index 0c4c4a0b4382..08ba884493b2 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt @@ -379,7 +379,7 @@ import org.apache.logging.log4j.Logger clientSideOnly = true, useMetadata = true, guiFactory = "at.hannibal2.skyhanni.config.ConfigGuiForgeInterop", - version = "0.23.Beta.15", + version = "0.23.Beta.16", ) class SkyHanniMod { diff --git a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt index 4e72a0fb48bf..88ec9e054571 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt @@ -42,6 +42,9 @@ class GuiPositionEditor(private val positions: List, private val borde override fun onGuiClosed() { super.onGuiClosed() clickedPos = -1 + for (position in positions) { + position.clicked = false + } OtherInventoryData.close() } @@ -235,4 +238,4 @@ class GuiPositionEditor(private val positions: List, private val borde else hovered.scale += .1F } -} \ No newline at end of file +} diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/optimalspeed/CustomSpeedConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/optimalspeed/CustomSpeedConfig.java index 615883c96121..768a155a60fe 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/garden/optimalspeed/CustomSpeedConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/optimalspeed/CustomSpeedConfig.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.Expose; import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider; import io.github.moulberry.moulconfig.annotations.ConfigOption; +import io.github.moulberry.moulconfig.observer.Property; public class CustomSpeedConfig { @@ -11,56 +12,56 @@ public class CustomSpeedConfig { "§e5 Blocks§7: §f✦ 93 speed\n" + "§e4 Blocks§7: §f✦ 116 speed") @ConfigEditorSlider(minValue = 1, maxValue = 400, minStep = 1) - public int wheat = 93; + public Property wheat = Property.of(93f); @Expose @ConfigOption(name = "Carrot", desc = "Suggested farm speed:\n" + "§e5 Blocks§7: §f✦ 93 speed\n" + "§e4 Blocks§7: §f✦ 116 speed") @ConfigEditorSlider(minValue = 1, maxValue = 400, minStep = 1) - public int carrot = 93; + public Property carrot = Property.of(93f); @Expose @ConfigOption(name = "Potato", desc = "Suggested farm speed:\n" + "§e5 Blocks§7: §f✦ 93 speed\n" + "§e4 Blocks§7: §f✦ 116 speed") @ConfigEditorSlider(minValue = 1, maxValue = 400, minStep = 1) - public int potato = 93; + public Property potato = Property.of(93f); @Expose @ConfigOption(name = "Nether Wart", desc = "Suggested farm speed:\n" + "§e5 Blocks§7: §f✦ 93 speed\n" + "§e4 Blocks§7: §f✦ 116 speed") @ConfigEditorSlider(minValue = 1, maxValue = 400, minStep = 1) - public int netherWart = 93; + public Property netherWart = Property.of(93f); @Expose @ConfigOption(name = "Pumpkin", desc = "Suggested farm speed:\n" + "§e3 Blocks§7: §f✦ 155 speed\n" + "§e2 Blocks§7: §f✦ 265 §7or §f400 speed") @ConfigEditorSlider(minValue = 1, maxValue = 400, minStep = 1) - public int pumpkin = 155; + public Property pumpkin = Property.of(155f); @Expose @ConfigOption(name = "Melon", desc = "Suggested farm speed:\n" + "§e3 Blocks§7: §f✦ 155 speed\n" + "§e2 Blocks§7: §f✦ 265 or 400 speed") @ConfigEditorSlider(minValue = 1, maxValue = 400, minStep = 1) - public int melon = 155; + public Property melon = Property.of(155f); @Expose @ConfigOption(name = "Cocoa Beans", desc = "Suggested farm speed:\n" + "§e3 Blocks§7: §f✦ 155 speed\n" + "§e4 Blocks§7: §f✦ 116 speed") @ConfigEditorSlider(minValue = 1, maxValue = 400, minStep = 1) - public int cocoaBeans = 155; + public Property cocoaBeans = Property.of(155f); // TODO does other speed settings exist? @Expose @ConfigOption(name = "Sugar Cane", desc = "Suggested farm speed:\n" + "§eYaw 45§7: §f✦ 328 speed") @ConfigEditorSlider(minValue = 1, maxValue = 400, minStep = 1) - public int sugarCane = 328; + public Property sugarCane = Property.of(328f); @Expose @ConfigOption(name = "Cactus", desc = "Suggested farm speed:\n" + @@ -68,12 +69,12 @@ public class CustomSpeedConfig { "§eRacing Helmet§7: §f✦ 464 speed\n" + "§eBlack Cat§7: §f✦ 464 speed") @ConfigEditorSlider(minValue = 1, maxValue = 500, minStep = 1) - public int cactus = 400; + public Property cactus = Property.of(400f); // TODO does other speed settings exist? @Expose @ConfigOption(name = "Mushroom", desc = "Suggested farm speed:\n" + "§eYaw 60§7: §f✦ 233 speed") @ConfigEditorSlider(minValue = 1, maxValue = 400, minStep = 1) - public int mushroom = 233; + public Property mushroom = Property.of(233f); } diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt index 0ba26998a432..78017b7bcc76 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt @@ -95,7 +95,7 @@ class HypixelData { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.onHypixel) return val message = event.message.removeColor().lowercase() diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/CompactBingoChat.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/CompactBingoChat.kt index 91e7a1745ae9..eb130b06b6c7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/CompactBingoChat.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/CompactBingoChat.kt @@ -20,7 +20,7 @@ class CompactBingoChat { // TODO USE SH-REPO @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!config.enabled) return if (!LorenzUtils.isBingoProfile && !config.outsideBingo) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt index ac0d3a6b8167..2c0437e01aaf 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt @@ -364,7 +364,7 @@ class ChatFilter { /// @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { val blockReason = block(event.message) if (blockReason == "") return diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/CompactBestiaryChatMessage.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/CompactBestiaryChatMessage.kt index 48d8b0e8c526..1399ae21680d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/CompactBestiaryChatMessage.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/CompactBestiaryChatMessage.kt @@ -23,7 +23,7 @@ class CompactBestiaryChatMessage { private val milestonePattern = "^.+(§8\\d{1,3}➡§e\\d{1,3})$".toRegex() @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inSkyBlock) return if (!SkyHanniMod.feature.chat.compactBestiaryMessage) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/CompactSplashPotionMessage.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/CompactSplashPotionMessage.kt index cf81e82c6f1f..4cd9e757d095 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/CompactSplashPotionMessage.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/CompactSplashPotionMessage.kt @@ -24,7 +24,7 @@ class CompactSplashPotionMessage { ) @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return if (!event.message.isPotionMessage()) return event.blockedReason = "compact_potion_effect" diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerDeathMessages.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerDeathMessages.kt index 342550a17fdb..0c20c849fc40 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerDeathMessages.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/PlayerDeathMessages.kt @@ -31,7 +31,7 @@ class PlayerDeathMessages { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inSkyBlock) return val message = event.message diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/WatchdogHider.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/WatchdogHider.kt index c5eefc603803..f70c10ea0163 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/WatchdogHider.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/WatchdogHider.kt @@ -15,7 +15,7 @@ class WatchdogHider { private var startLineComponent: IChatComponent? = null @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.onHypixel || !SkyHanniMod.feature.chat.filterType.watchDog) return when (event.message) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/DamageIndicatorManager.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/DamageIndicatorManager.kt index dc00b93ef7ff..3e6b2e6da3b6 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/DamageIndicatorManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/combat/damageindicator/DamageIndicatorManager.kt @@ -118,7 +118,7 @@ class DamageIndicatorManager { } @SubscribeEvent(receiveCanceled = true) - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { mobFinder?.handleChat(event.message) } diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt index af351814171b..c1d8415e0467 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt @@ -135,15 +135,22 @@ class DungeonAPI { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { - val floor = dungeonFloor - if (floor != null) { - if (event.message == "§e[NPC] §bMort§f: §rHere, I found this map when I first entered the dungeon.") { - started = true - DungeonStartEvent(floor).postAndCatch() - } - if (event.message.removeColor().matches(uniqueClassBonus)) { - isUniqueClass = true + fun onChat(event: LorenzChatEvent) { + val floor = dungeonFloor ?: return + if (event.message == "§e[NPC] §bMort§f: §rHere, I found this map when I first entered the dungeon.") { + started = true + DungeonStartEvent(floor).postAndCatch() + } + if (event.message.removeColor().matches(uniqueClassBonus)) { + isUniqueClass = true + } + + if (!LorenzUtils.inSkyBlock) return + killPattern.matchMatcher(event.message.removeColor()) { + val bossCollections = bossStorage ?: return + val boss = DungeonFloor.byBossName(group("boss")) + if (matches() && boss != null && boss !in bossCollections) { + bossCollections.addOrPut(boss, 1) } } } @@ -209,18 +216,6 @@ class DungeonAPI { } } - @SubscribeEvent - fun onChat(event: LorenzChatEvent) { - if (!LorenzUtils.inDungeons) return - killPattern.matchMatcher(event.message.removeColor()) { - val bossCollections = bossStorage ?: return - val boss = DungeonFloor.byBossName(group("boss")) - if (matches() && boss != null && boss !in bossCollections) { - bossCollections.addOrPut(boss, 1) - } - } - } - @SubscribeEvent fun onDebugDataCollect(event: DebugDataCollectEvent) { event.title("Dungeon") diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt index 86d64b4168c3..51ee9802945e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonBossMessages.kt @@ -44,7 +44,7 @@ class DungeonBossMessages { ) @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inDungeons) return if (!isBoss(event.message)) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt index 3a29ac603288..a133cb6be76d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt @@ -190,7 +190,7 @@ class DungeonChatFilter { /// @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.onHypixel || config.dungeonFilteredMessageTypes.isEmpty()) return // Workaround since the potion message gets always sent at that moment when SkyBlock is set as false diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt index 06f43c51fd02..4ee2c87611f9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt @@ -31,7 +31,7 @@ class DungeonCleanEnd { private var lastBossId: Int = -1 @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inDungeons) return if (!config.enabled) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt index 1dcc92dabfba..32ee7cebe9d5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt @@ -32,7 +32,7 @@ class DungeonCopilot { private var searchForKey = false @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return copilot(event.message)?.let { diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt index 36c9f780d23c..a3381744c37c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonHighlightClickedBlocks.kt @@ -29,7 +29,7 @@ class DungeonHighlightClickedBlocks { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!SkyHanniMod.feature.dungeon.highlightClickedBlocks) return if (!LorenzUtils.inDungeons) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt index 23bd9c86def1..722bdcd12413 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt @@ -43,8 +43,6 @@ object GriffinBurrowHelper { var targetLocation: LorenzVec? = null private var guessLocation: LorenzVec? = null private var particleBurrows = mapOf() - - private var lastGuessTime = 0L var lastTitleSentTime = SimpleTimeMark.farPast() @SubscribeEvent @@ -96,7 +94,6 @@ object GriffinBurrowHelper { @SubscribeEvent fun onBurrowGuess(event: BurrowGuessEvent) { EntityMovementData.addToTrack(Minecraft.getMinecraft().thePlayer) - lastGuessTime = System.currentTimeMillis() guessLocation = event.guessLocation update() @@ -134,21 +131,28 @@ object GriffinBurrowHelper { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return if (event.message.startsWith("§c ☠ §r§7You were killed by §r")) { particleBurrows = particleBurrows.editCopy { keys.removeIf { this[it] == BurrowType.MOB } } } + + // talking to Diana NPC if (event.message == "§6Poof! §r§eYou have cleared your griffin burrows!") { - guessLocation = null - particleBurrows = emptyMap() + resetAllData() } } - @SubscribeEvent - fun onWorldChange(event: LorenzWorldChangeEvent) { + private fun resetAllData() { guessLocation = null + targetLocation = null particleBurrows = emptyMap() + update() + } + + @SubscribeEvent + fun onWorldChange(event: LorenzWorldChangeEvent) { + resetAllData() } private fun findBlock(point: LorenzVec): LorenzVec { @@ -319,8 +323,7 @@ object GriffinBurrowHelper { val type: BurrowType = when (strings[0].lowercase()) { "reset" -> { - particleBurrows = emptyMap() - update() + resetAllData() LorenzUtils.chat("Manually reset all burrow waypoints.") return } diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt index bbe17408f7fa..f21b808b205c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt @@ -127,7 +127,7 @@ class GriffinBurrowParticleFinder { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return if (!config.burrowsSoopyGuess) return val message = event.message diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt index f8469f83f634..d7a161957ce0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt @@ -79,7 +79,7 @@ object InquisitorWaypointShare { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return val message = event.message if (message.contains("§eYou dug out")) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/winter/NewYearCakeReminder.kt b/src/main/java/at/hannibal2/skyhanni/features/event/winter/NewYearCakeReminder.kt index d9c9be396b0b..0198c96b3990 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/winter/NewYearCakeReminder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/winter/NewYearCakeReminder.kt @@ -26,7 +26,7 @@ class NewYearCakeReminder { private var lastReminderSend = SimpleTimeMark.farPast() @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (event.message == "§aYou claimed a §r§cNew Year Cake§r§a!") { makedClaimed() } diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt index 022e9d30277a..5843bb97c5be 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt @@ -13,7 +13,7 @@ class SeaCreatureManager { private var doubleHook = false @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inSkyBlock) return if (doubleHookMessages.contains(event.message)) { if (SkyHanniMod.feature.fishing.compactDoubleHook) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/SharkFishCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/SharkFishCounter.kt index 6e98cd1343be..f84a72d53a03 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/SharkFishCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/SharkFishCounter.kt @@ -45,7 +45,7 @@ class SharkFishCounter { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (event.message != "§b§lFISHING FESTIVAL §r§eThe festival has concluded! Time to dry off and repair your rods!") return val count = counter.sum() if (count == 0) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneFix.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneFix.kt index b75929edb9ae..495d82bb67cd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneFix.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneFix.kt @@ -12,7 +12,6 @@ import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNecessary import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import net.minecraftforge.fml.common.eventhandler.SubscribeEvent -import java.util.regex.Pattern class GardenCropMilestoneFix { private val tabListPattern = " Milestone: §r§a(?.*) (?.*): §r§3(?.*)%".toPattern() @@ -21,7 +20,7 @@ class GardenCropMilestoneFix { private val tabListCropProgress = mutableMapOf() @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { levelUpPattern.matchMatcher(event.message) { val cropName = group("crop") val crop = CropType.getByNameOrNull(cropName) ?: return diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt index d2772d837fb5..f674340d7601 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt @@ -31,7 +31,7 @@ class GardenLevelDisplay { } @SubscribeEvent(receiveCanceled = true) - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!GardenAPI.inGarden()) return visitorRewardPattern.matchMatcher(event.message) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt index 3e5888868272..c0ce6e821fc1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenOptimalSpeed.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.features.garden import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator +import at.hannibal2.skyhanni.events.ConfigLoadEvent import at.hannibal2.skyhanni.events.GardenToolChangeEvent import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzTickEvent @@ -11,6 +12,7 @@ import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import at.hannibal2.skyhanni.utils.renderables.Renderable +import io.github.moulberry.moulconfig.observer.Property import net.minecraft.client.Minecraft import net.minecraft.client.gui.inventory.GuiEditSign import net.minecraftforge.client.event.GuiOpenEvent @@ -79,20 +81,35 @@ class GardenOptimalSpeed { @SubscribeEvent fun onGardenToolChange(event: GardenToolChangeEvent) { cropInHand = event.crop - optimalSpeed = cropInHand.let { it?.getOptimalSpeed() ?: -1 } + optimalSpeed = cropInHand?.getOptimalSpeed() ?: -1 } - private fun CropType.getOptimalSpeed() = when (this) { - CropType.WHEAT -> configCustomSpeed.wheat - CropType.CARROT -> configCustomSpeed.carrot - CropType.POTATO -> configCustomSpeed.potato - CropType.NETHER_WART -> configCustomSpeed.netherWart - CropType.PUMPKIN -> configCustomSpeed.pumpkin - CropType.MELON -> configCustomSpeed.melon - CropType.COCOA_BEANS -> configCustomSpeed.cocoaBeans - CropType.SUGAR_CANE -> configCustomSpeed.sugarCane - CropType.CACTUS -> configCustomSpeed.cactus - CropType.MUSHROOM -> configCustomSpeed.mushroom + @SubscribeEvent + fun onConfigLoad(event: ConfigLoadEvent) { + for (value in CropType.entries) { + LorenzUtils.onToggle(value.getConfig()) { + if (value == cropInHand) { + optimalSpeed = value.getOptimalSpeed() + } + } + } + } + + private fun CropType.getOptimalSpeed() = getConfig().get().toInt() + + private fun CropType.getConfig(): Property = with(configCustomSpeed) { + when (this@getConfig) { + CropType.WHEAT -> wheat + CropType.CARROT -> carrot + CropType.POTATO -> potato + CropType.NETHER_WART -> netherWart + CropType.PUMPKIN -> pumpkin + CropType.MELON -> melon + CropType.COCOA_BEANS -> cocoaBeans + CropType.SUGAR_CANE -> sugarCane + CropType.CACTUS -> cactus + CropType.MUSHROOM -> mushroom + } } @SubscribeEvent diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/WrongFungiCutterWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/WrongFungiCutterWarning.kt index bea0d4b927ac..aeae6de44368 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/WrongFungiCutterWarning.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/WrongFungiCutterWarning.kt @@ -18,7 +18,7 @@ class WrongFungiCutterWarning { private var lastPlaySoundTime = 0L @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { val message = event.message if (message == "§eFungi Cutter Mode: §r§cRed Mushrooms") { mode = FungiMode.RED diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 1ab640b2d547..d9eb440e86e8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -454,7 +454,7 @@ class GardenVisitorFeatures { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (config.hypixelArrivedMessage && newVisitorArrivedMessage.matcher(event.message).matches()) { event.blockedReason = "new_visitor_arrived" } diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/tiarelay/TiaRelayWaypoints.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/tiarelay/TiaRelayWaypoints.kt index 4fa33ad2b010..a3a5014c3ab6 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/tiarelay/TiaRelayWaypoints.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/tiarelay/TiaRelayWaypoints.kt @@ -22,7 +22,7 @@ class TiaRelayWaypoints { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inSkyBlock) return if (!config.nextWaypoint) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/ChickenHeadTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/ChickenHeadTimer.kt index 639693afbbe7..5f096ecccdf4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/ChickenHeadTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/ChickenHeadTimer.kt @@ -34,7 +34,7 @@ class ChickenHeadTimer { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return if (!hasChickenHead) return if (event.message == "§aYou laid an egg!") { diff --git a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt index ffb457ebfa8e..db8fb5f31567 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt @@ -308,7 +308,7 @@ class ItemAbilityCooldown { private fun ItemStack.getIdentifier() = getItemUuid() ?: getItemId() @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return val message = event.message diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt index f5552701ea6c..7cd0d7c9e332 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt @@ -255,7 +255,7 @@ class MinionFeatures { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!enable()) return val message = event.message diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt index 4b4d39816e8d..d4cc01fbd449 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/CurrentPetDisplay.kt @@ -25,7 +25,7 @@ class CurrentPetDisplay { private val chatPetRulePattern = "§cAutopet §eequipped your §7\\[Lvl .*] (?.*)! §a§lVIEW RULE".toPattern() @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { findPetInChat(event.message)?.let { PetAPI.currentPet = it if (config.hideAutopet) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt index c037598e6a44..befa84037206 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt @@ -79,7 +79,7 @@ class NonGodPotEffectDisplay { // todo : cleanup and add support for poison candy I, and add support for splash / other formats @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (event.message == "§aYou cleared all of your active effects!") { effectDuration.clear() update() diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt index 85c9c66b33f6..56ce5b44c954 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt @@ -23,7 +23,7 @@ object AshfangFreezeCooldown { private var lastHit = SimpleTimeMark.farPast() @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return val message = event.message diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/area/mirrorverse/RiftLavaMazeParkour.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/area/mirrorverse/RiftLavaMazeParkour.kt index 2ffcb7928398..dc3c26189a4f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/area/mirrorverse/RiftLavaMazeParkour.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/area/mirrorverse/RiftLavaMazeParkour.kt @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.features.rift.area.mirrorverse +import at.hannibal2.skyhanni.data.jsonobjects.repo.ParkourJson import at.hannibal2.skyhanni.events.CheckRenderEntityEvent import at.hannibal2.skyhanni.events.ConfigLoadEvent import at.hannibal2.skyhanni.events.LorenzChatEvent @@ -9,7 +10,6 @@ import at.hannibal2.skyhanni.features.rift.RiftAPI import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.toChromaColor import at.hannibal2.skyhanni.utils.ParkourHelper -import at.hannibal2.skyhanni.data.jsonobjects.repo.ParkourJson import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class RiftLavaMazeParkour { @@ -41,7 +41,7 @@ class RiftLavaMazeParkour { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return if (event.message == "§c§lEEK! THE LAVA OOFED YOU!") { diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/area/mirrorverse/RiftUpsideDownParkour.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/area/mirrorverse/RiftUpsideDownParkour.kt index 1826a5e380cd..7283968831b9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/area/mirrorverse/RiftUpsideDownParkour.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/area/mirrorverse/RiftUpsideDownParkour.kt @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.features.rift.area.mirrorverse +import at.hannibal2.skyhanni.data.jsonobjects.repo.ParkourJson import at.hannibal2.skyhanni.events.CheckRenderEntityEvent import at.hannibal2.skyhanni.events.ConfigLoadEvent import at.hannibal2.skyhanni.events.LorenzChatEvent @@ -9,7 +10,6 @@ import at.hannibal2.skyhanni.features.rift.RiftAPI import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.toChromaColor import at.hannibal2.skyhanni.utils.ParkourHelper -import at.hannibal2.skyhanni.data.jsonobjects.repo.ParkourJson import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class RiftUpsideDownParkour { @@ -41,7 +41,7 @@ class RiftUpsideDownParkour { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return if (event.message == "§c§lOH NO! THE LAVA OOFED YOU BACK TO THE START!") { diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt index f62ad2c7a798..870b1f121b57 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/RiftMotesOrb.kt @@ -55,7 +55,7 @@ class RiftMotesOrb { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { pattern.matchMatcher(event.message) { motesOrbs.minByOrNull { it.location.distanceToPlayer() }?.let { it.pickedUp = true diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt index 52eb9f806d68..03beaa6fef50 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/SlayerQuestWarning.kt @@ -28,7 +28,7 @@ class SlayerQuestWarning { //TODO add check if player has clicked on an item, before mobs around you gets damage @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!(LorenzUtils.inSkyBlock)) return val message = event.message diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt index 5d0a4f178b56..535bc3130e52 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt @@ -35,7 +35,7 @@ class BlazeSlayerDaggerHelper { private var lastNearest: HellionShield? = null @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inSkyBlock) return if (!config.hideDaggerWarning) return 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 e1755f988ea8..83c5da19f286 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/summonings/SummoningMobManager.kt @@ -47,7 +47,7 @@ class SummoningMobManager { private val seraphRecallPattern = "§cThe Seraph recalled your (\\d) summoned allies!".toPattern() @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inSkyBlock) return val message = event.message diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index 355bd1821cb9..799e096ebbe9 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -434,7 +434,7 @@ class SkyHanniDebugsAndTests { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { }