ArrayList

This commit is contained in:
Tamion 2024-10-20 14:27:24 +02:00
parent 75a5683134
commit 28ca2a7a3d
No known key found for this signature in database
GPG key ID: 01E616386DBAE296
2 changed files with 2 additions and 2 deletions

View file

@ -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 {
@ -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) {