diff options
| author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-06-13 22:21:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-13 22:21:50 +0200 |
| commit | 529639fdd0683066eadffe93473a300a2177c008 (patch) | |
| tree | d89cd9aa2c04b4a8a839b9c3b1a56d2058fa7956 /src/main/java/at/hannibal2/skyhanni/features/cosmetics | |
| parent | 151865bca064421d48ec19279b759134fc428443 (diff) | |
| download | skyhanni-529639fdd0683066eadffe93473a300a2177c008.tar.gz skyhanni-529639fdd0683066eadffe93473a300a2177c008.tar.bz2 skyhanni-529639fdd0683066eadffe93473a300a2177c008.zip | |
Backend: for each (#1725)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/cosmetics')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/cosmetics/ArrowTrail.kt | 6 |
1 files changed, 3 insertions, 3 deletions
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<EntityArrow>().forEach { - val line = Line(it.getPrevLorenzVec(), it.getLorenzVec(), deathTime) - if (it.shootingEntity == Minecraft.getMinecraft().thePlayer) { + for (arrow in EntityUtils.getEntities<EntityArrow>()) { + val line = Line(arrow.getPrevLorenzVec(), arrow.getLorenzVec(), deathTime) + if (arrow.shootingEntity == Minecraft.getMinecraft().thePlayer) { listYourArrow.add(line) } else { listAllArrow.add(line) |
