diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-10 13:02:07 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-10 13:02:07 +0100 |
commit | 83fa196bc1e24ad183e7e38318414fc7e0a85376 (patch) | |
tree | 356ab25d53ca7c7fcd38e3c213cdaacdc7404824 /src/main | |
parent | df1a6dd8fcf348dfb97ba85e6590fdd40207fcd8 (diff) | |
download | skyhanni-83fa196bc1e24ad183e7e38318414fc7e0a85376.tar.gz skyhanni-83fa196bc1e24ad183e7e38318414fc7e0a85376.tar.bz2 skyhanni-83fa196bc1e24ad183e7e38318414fc7e0a85376.zip |
Showing gui elements while pressing tab list key again
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt index c2da6f5c8..18659e587 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerDaggerHelper.kt @@ -21,7 +21,6 @@ import net.minecraft.item.ItemStack import net.minecraft.network.play.server.S45PacketTitle import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.gameevent.TickEvent -import org.lwjgl.input.Keyboard class BlazeSlayerDaggerHelper { @@ -251,7 +250,6 @@ class BlazeSlayerDaggerHelper { if (textTopLeft.isEmpty()) return if (Minecraft.getMinecraft().currentScreen != null) return - if (Keyboard.isKeyDown(Minecraft.getMinecraft().gameSettings.keyBindPlayerList.keyCode)) return val scaledResolution = ScaledResolution(Minecraft.getMinecraft()) val width = scaledResolution.scaledWidth diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index 742f81f38..62a8c2c61 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -430,7 +430,6 @@ object RenderUtils { fun Position.renderString(string: String?, extraOffsetX: Int = 0, offsetY: Int = 0, center: Boolean = true) { val minecraft = Minecraft.getMinecraft() - if (minecraft.gameSettings.keyBindPlayerList.isKeyDown) return if (string == null) return if (string == "") return @@ -457,7 +456,6 @@ object RenderUtils { } fun Position.renderStrings(list: List<String>, extraSpace: Int = 0, center: Boolean = false) { - if (Minecraft.getMinecraft().gameSettings.keyBindPlayerList.isKeyDown) return if (list.isEmpty()) return var offsetY = 0 @@ -472,7 +470,6 @@ object RenderUtils { * Each line is a list of things to print. Can print String or ItemStack objects. */ fun Position.renderStringsAndItems(list: List<List<Any?>>, extraSpace: Int = 0) { - if (Minecraft.getMinecraft().gameSettings.keyBindPlayerList.isKeyDown) return if (list.isEmpty()) return var offsetY = 0 |