diff options
author | Appability <appable@icloud.com> | 2022-10-30 20:42:56 -0700 |
---|---|---|
committer | Appability <appable@icloud.com> | 2022-11-01 10:37:47 -0700 |
commit | 38e6266d2e608f376833dc9bc0c1074bed24535b (patch) | |
tree | ecf6e02eca2263b0bf4f5b8791143153dd826470 /src/main/kotlin/com/ambientaddons/features/misc | |
parent | a0c2f3baf572c747321812241ad941f79218c875 (diff) | |
download | AmbientAddons-38e6266d2e608f376833dc9bc0c1074bed24535b.tar.gz AmbientAddons-38e6266d2e608f376833dc9bc0c1074bed24535b.tar.bz2 AmbientAddons-38e6266d2e608f376833dc9bc0c1074bed24535b.zip |
kuudra HP display features
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features/misc')
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/misc/BonzoMask.kt | 2 | ||||
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/misc/KuudraReady.kt | 36 |
2 files changed, 1 insertions, 37 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/misc/BonzoMask.kt b/src/main/kotlin/com/ambientaddons/features/misc/BonzoMask.kt index 2e8be9e..022a435 100644 --- a/src/main/kotlin/com/ambientaddons/features/misc/BonzoMask.kt +++ b/src/main/kotlin/com/ambientaddons/features/misc/BonzoMask.kt @@ -38,7 +38,7 @@ object BonzoMask { else -> false } if (config.maskWarning && didMaskProc) { - mc.ingameGUI.displayTitle("§cMask!", null, 5, 20, 5) + mc.ingameGUI.displayTitle("§cMask!", null, 5, 40, 5) } } diff --git a/src/main/kotlin/com/ambientaddons/features/misc/KuudraReady.kt b/src/main/kotlin/com/ambientaddons/features/misc/KuudraReady.kt deleted file mode 100644 index d9be1dd..0000000 --- a/src/main/kotlin/com/ambientaddons/features/misc/KuudraReady.kt +++ /dev/null @@ -1,36 +0,0 @@ -package com.ambientaddons.features.misc - -import AmbientAddons.Companion.config -import AmbientAddons.Companion.mc -import com.ambientaddons.utils.Area -import com.ambientaddons.utils.Extensions.chest -import com.ambientaddons.utils.Extensions.items -import com.ambientaddons.utils.Extensions.lore -import com.ambientaddons.utils.Extensions.stripControlCodes -import com.ambientaddons.utils.SBLocation -import net.minecraftforge.client.event.GuiScreenEvent -import net.minecraftforge.event.world.WorldEvent -import net.minecraftforge.fml.common.eventhandler.SubscribeEvent - -object KuudraReady { - private var hasClickedReady = false - - @SubscribeEvent - fun onWorldUnload(event: WorldEvent.Unload) { - hasClickedReady = false - } - - @SubscribeEvent - fun onGuiDraw(event: GuiScreenEvent.DrawScreenEvent) { - if (!config.kuudraReady || SBLocation.area != Area.Kuudra) return - val chest = event.gui?.chest ?: return - val chestName = chest.lowerChestInventory.name - if (chestName == "Ready Up" && !hasClickedReady) { - val clickIndex = chest.lowerChestInventory.items.takeIf { it.last() != null }?.indexOfFirst { - it?.lore?.getOrNull(0)?.stripControlCodes()?.startsWith("Click to mark yourself") == true - } ?: return - hasClickedReady = true - mc.playerController.windowClick(chest.windowId, clickIndex, 2, 3, mc.thePlayer) - } - } -}
\ No newline at end of file |