diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index 309f17f68..39f251340 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -650,8 +650,11 @@ object RenderUtils { ) { if (list.isEmpty()) return - val render = - list.map { it.map { Renderable.fromAny(it, itemScale = itemScale) ?: throw RuntimeException("Unknown render object: $it") } } + val render = list.map { listEntry -> + listEntry.map { + Renderable.fromAny(it, itemScale = itemScale) ?: throw RuntimeException("Unknown render object: $it") + } + } this.renderRenderablesDouble(render, extraSpace, posLabel, true) } @@ -1323,11 +1326,11 @@ object RenderUtils { } } else { val pathLines = path.zipWithNext() - pathLines.forEachIndexed { index, it -> - val reduce = it.second.minus(it.first).normalize().times(bezierPoint) + pathLines.forEachIndexed { index, pathLine -> + val reduce = pathLine.second.minus(pathLine.first).normalize().times(bezierPoint) draw3DLine( - if (index != 0) it.first + reduce else it.first, - if (index != pathLines.lastIndex) it.second - reduce else it.second, + if (index != 0) pathLine.first + reduce else pathLine.first, + if (index != pathLines.lastIndex) pathLine.second - reduce else pathLine.second, color, lineWidth, depth, |