diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-22 19:59:35 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-22 19:59:35 +0100 |
commit | 0ae6e9f1f9c246cf0e31f95c7da525cb62731c97 (patch) | |
tree | 6ab84381c1b2028ef057ee4ec739433ff776b99f /src/main/java/at/hannibal2 | |
parent | 3fd061f78bb09636ffb30f1e2f061df6aaebea69 (diff) | |
download | skyhanni-0ae6e9f1f9c246cf0e31f95c7da525cb62731c97.tar.gz skyhanni-0ae6e9f1f9c246cf0e31f95c7da525cb62731c97.tar.bz2 skyhanni-0ae6e9f1f9c246cf0e31f95c7da525cb62731c97.zip |
Hide the items of render list when tab list is open.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 2 |
1 files changed, 2 insertions, 0 deletions
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<String>, 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<List<Any>>, extraSpace: Int = 0) { + if (Minecraft.getMinecraft().gameSettings.keyBindPlayerList.isKeyDown) return if (list.isEmpty()) return var offsetY = 0 |