aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
index 2697259dd..a8bbc9436 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
@@ -458,7 +458,7 @@ object RenderUtils {
if (list.isEmpty()) return
var offsetY = 0
- for (s in list.toMutableList()) {
+ for (s in list) {
renderString(s, offsetY = offsetY, center = center)
offsetY += 10 + extraSpace
}
@@ -472,9 +472,8 @@ object RenderUtils {
if (list.isEmpty()) return
var offsetY = 0
- // TODO remove toMutableList
try {
- for (line in list.toMutableList()) {
+ for (line in list) {
renderLine(line, offsetY, itemScale)
offsetY += 10 + extraSpace + 2
}