diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonShadowAssassinNotification.kt | 7 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorWorldBorderPacket.java (renamed from src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorWorldBoarderPacket.java) | 2 |
2 files changed, 5 insertions, 4 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 diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorWorldBoarderPacket.java b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorWorldBorderPacket.java index b65841521..7f29b397e 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorWorldBoarderPacket.java +++ b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/AccessorWorldBorderPacket.java @@ -5,7 +5,7 @@ import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.gen.Accessor; @Mixin(S44PacketWorldBorder.class) -public interface AccessorWorldBoarderPacket { +public interface AccessorWorldBorderPacket { @Accessor("action") S44PacketWorldBorder.Action getAction(); |