aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/renderables
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-10-03 08:34:40 -0400
committerGitHub <noreply@github.com>2024-10-03 14:34:40 +0200
commit7efb11313d70c65b8df6692ed237f137d4d346d1 (patch)
tree206da44a87d03bb516041e59bcd692986c11475f /src/main/java/at/hannibal2/skyhanni/utils/renderables
parent4d4fbd019a58a694c0d36ae08d25a97c9db268d8 (diff)
downloadskyhanni-7efb11313d70c65b8df6692ed237f137d4d346d1.tar.gz
skyhanni-7efb11313d70c65b8df6692ed237f137d4d346d1.tar.bz2
skyhanni-7efb11313d70c65b8df6692ed237f137d4d346d1.zip
Backend: Detekt Fixes Part 5 (#2617)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/renderables')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt
index f3f704f37..5362cc177 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt
@@ -1139,6 +1139,7 @@ interface Renderable {
GlStateManager.translate(0f, yShift.toFloat(), 0f)
renderY += yShift
}
+ @Suppress("SpacingAroundCurly")
val range = yOffsets.indexOfFirst { it >= scroll.asInt() }..<(yOffsets.indexOfFirst { it >= end }.takeIf { it > 0 }
?: yOffsets.size) - 1