diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-06-15 11:15:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 11:15:17 +0200 |
commit | 5025043986350435d042f83a51007fc8c4495827 (patch) | |
tree | eda528f7210be5106ea5c99e4fbedbc2a5d225c5 | |
parent | 84b59f02dbd85dc49343cd53271413e52f3ed2ae (diff) | |
download | skyhanni-5025043986350435d042f83a51007fc8c4495827.tar.gz skyhanni-5025043986350435d042f83a51007fc8c4495827.tar.bz2 skyhanni-5025043986350435d042f83a51007fc8c4495827.zip |
Fix: World Boarder (#2102)
-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(); |