From 529639fdd0683066eadffe93473a300a2177c008 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:21:50 +0200 Subject: Backend: for each (#1725) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/cosmetics') diff --git a/src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt b/src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt index 0f4d267f7..304ee21f8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt @@ -41,9 +41,9 @@ object ArrowTrail { listAllArrow.removeIf { it.deathTime.isInPast() } listYourArrow.removeIf { it.deathTime.isInPast() } - EntityUtils.getEntities().forEach { - val line = Line(it.getPrevLorenzVec(), it.getLorenzVec(), deathTime) - if (it.shootingEntity == Minecraft.getMinecraft().thePlayer) { + for (arrow in EntityUtils.getEntities()) { + val line = Line(arrow.getPrevLorenzVec(), arrow.getLorenzVec(), deathTime) + if (arrow.shootingEntity == Minecraft.getMinecraft().thePlayer) { listYourArrow.add(line) } else { listAllArrow.add(line) -- cgit