From 0ae6e9f1f9c246cf0e31f95c7da525cb62731c97 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 22 Jan 2023 19:59:35 +0100 Subject: Hide the items of render list when tab list is open. --- src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index 830e58ce5..e0abe1ac5 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -456,6 +456,7 @@ object RenderUtils { } fun Position.renderStrings(list: List, extraSpace: Int = 0, center: Boolean = false) { + if (Minecraft.getMinecraft().gameSettings.keyBindPlayerList.isKeyDown) return if (list.isEmpty()) return var offsetY = 0 @@ -470,6 +471,7 @@ object RenderUtils { * Each line is a list of things to print. Can print String or ItemStack objects. */ fun Position.renderStringsAndItems(list: List>, extraSpace: Int = 0) { + if (Minecraft.getMinecraft().gameSettings.keyBindPlayerList.isKeyDown) return if (list.isEmpty()) return var offsetY = 0 -- cgit