diff options
author | Appability <appable@icloud.com> | 2022-10-17 16:11:40 -0700 |
---|---|---|
committer | Appability <appable@icloud.com> | 2022-10-17 16:11:40 -0700 |
commit | fcd49c8b59f9c76008b5112a2e296c164b168842 (patch) | |
tree | ba3be0850cfe2185a68e6ba9fd862e5c59fd57dc /src/main/kotlin/com/ambientaddons/features/dungeon/terminals | |
parent | d4245bb705c7d8965e6bf63c90614dcfef38dcf7 (diff) | |
download | AmbientAddons-fcd49c8b59f9c76008b5112a2e296c164b168842.tar.gz AmbientAddons-fcd49c8b59f9c76008b5112a2e296c164b168842.tar.bz2 AmbientAddons-fcd49c8b59f9c76008b5112a2e296c164b168842.zip |
trapper esp
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features/dungeon/terminals')
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt b/src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt index 74b23e7..f867b3f 100644 --- a/src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt +++ b/src/main/kotlin/com/ambientaddons/features/dungeon/terminals/MelodyHelper.kt @@ -6,7 +6,7 @@ import com.ambientaddons.events.GuiContainerEvent import com.ambientaddons.utils.Extensions.chest import com.ambientaddons.utils.Extensions.items import com.ambientaddons.utils.Extensions.stripControlCodes -import com.ambientaddons.utils.SkyBlock +import com.ambientaddons.utils.SBLocation import net.minecraftforge.client.event.ClientChatReceivedEvent import net.minecraftforge.client.event.GuiOpenEvent import net.minecraftforge.event.world.WorldEvent @@ -27,7 +27,7 @@ object MelodyHelper { @SubscribeEvent fun onChat(event: ClientChatReceivedEvent) { - if (SkyBlock.dungeonFloor?.floor != 7) return + if (SBLocation.dungeonFloor?.floor != 7) return val unformatted = event.message.unformattedText.stripControlCodes() if (completedStageRegex.matches(unformatted)) { hasSaidMeowlody = false @@ -44,7 +44,7 @@ object MelodyHelper { @SubscribeEvent fun onGuiOpen(event: GuiOpenEvent) { - if (SkyBlock.dungeonFloor?.floor != 7) return + if (SBLocation.dungeonFloor?.floor != 7) return if (event.gui == null) return if (event.gui.chest?.lowerChestInventory?.name == "Click the button on time!") { if (!hasSaidMeowlody && config.melodyAnnouncement.isNotBlank()) { @@ -56,7 +56,7 @@ object MelodyHelper { @SubscribeEvent fun onSlotClick(event: GuiContainerEvent.SlotClickEvent) { - if (SkyBlock.dungeonFloor?.floor != 7) return + if (SBLocation.dungeonFloor?.floor != 7) return val chest = event.gui.chest?.lowerChestInventory if (chest?.name != "Click the button on time!" || isThrottled) return val colors = chest.items.map { it?.itemDamage } |