Skip to content

Commit

Permalink
ArrayList
Browse files Browse the repository at this point in the history
  • Loading branch information
notTamion committed Oct 20, 2024
1 parent 75a5683 commit 28ca2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ index 8575941fd238750c5d56843989a48bcbde2d8a88..498b7d41e054903d3bfab66f86a9da7c
double d1 = this.getY() + vec3d.y;
double d2 = this.getZ() + vec3d.z;
diff --git a/src/main/java/net/minecraft/world/entity/projectile/ProjectileUtil.java b/src/main/java/net/minecraft/world/entity/projectile/ProjectileUtil.java
index e43b3b37a3afc903f057d49d34339f8022274d3e..dcbb54b19a88db7c4eca761ccba7d6e9b333fd11 100644
index e43b3b37a3afc903f057d49d34339f8022274d3e..9e55360fa4f3449e391ae5262187dce686654202 100644
--- a/src/main/java/net/minecraft/world/entity/projectile/ProjectileUtil.java
+++ b/src/main/java/net/minecraft/world/entity/projectile/ProjectileUtil.java
@@ -159,4 +159,51 @@ public final class ProjectileUtil {
Expand All @@ -261,7 +261,7 @@ index e43b3b37a3afc903f057d49d34339f8022274d3e..dcbb54b19a88db7c4eca761ccba7d6e9
+ }
+ }
+
+ return entities.values().stream().map(EntityHitResult::new).collect(java.util.stream.Collectors.toList());
+ return entities.values().stream().map(EntityHitResult::new).collect(java.util.stream.Collectors.toCollection(java.util.ArrayList::new));
+ }
+
+ public static java.util.List<HitResult> getHitResultsOnMoveVector(Entity entity, Predicate<Entity> predicate) {
Expand Down

0 comments on commit 28ca2a7

Please sign in to comment.