diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonShadowAssassinNotification.kt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonShadowAssassinNotification.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonShadowAssassinNotification.kt index d96e4559f..ca888392f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonShadowAssassinNotification.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonShadowAssassinNotification.kt @@ -5,7 +5,7 @@ import at.hannibal2.skyhanni.api.event.HandleEvent import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.data.TitleManager import at.hannibal2.skyhanni.events.minecraft.packet.PacketReceivedEvent -import at.hannibal2.skyhanni.mixins.transformers.AccessorWorldBoarderPacket +import at.hannibal2.skyhanni.mixins.transformers.AccessorWorldBorderPacket import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule import at.hannibal2.skyhanni.utils.SoundUtils import net.minecraft.network.play.server.S44PacketWorldBorder @@ -13,14 +13,15 @@ import kotlin.time.Duration.Companion.seconds @SkyHanniModule object DungeonShadowAssassinNotification { + private val config get() = SkyHanniMod.feature.dungeon @HandleEvent(onlyOnIsland = IslandType.CATACOMBS) - fun onWorldBoarderChange(event: PacketReceivedEvent) { + fun onWorldBorderChange(event: PacketReceivedEvent) { if (!isEnabled()) return if (DungeonAPI.dungeonFloor?.contains("3") == true && DungeonAPI.inBossRoom) return - val packet = event.packet as? AccessorWorldBoarderPacket ?: return + val packet = event.packet as? AccessorWorldBorderPacket ?: return val action = packet.action val warningTime = packet.warningTime |