Skip to content

Commit

Permalink
Showing gui elements while pressing tab list key again
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Mar 10, 2023
1 parent 7835491 commit f7bf28d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f7bf28d

Please sign in to comment.