2021-06-14 18:58:00 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2021-06-17 11:37:24 +02:00
|
|
|
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
|
2021-06-14 18:58:00 +02:00
|
|
|
Date: Sun, 4 Oct 2020 19:55:25 -0700
|
|
|
|
Subject: [PATCH] Fix CME on adding a passenger in CreatureSpawnEvent
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
|
2021-06-17 21:12:40 +02:00
|
|
|
index 13dca15a70d7eb4d4330509727a2e34dec25f74c..2822105ba88e8fa155147b2529daea70f56d509b 100644
|
2021-06-14 18:58:00 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
|
2021-06-16 19:48:25 +02:00
|
|
|
@@ -3433,7 +3433,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, n
|
2021-06-14 18:58:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
private Stream<Entity> getIndirectPassengersStream() {
|
|
|
|
- return this.passengers.stream().flatMap(Entity::getSelfAndPassengers);
|
|
|
|
+ return ImmutableList.copyOf(this.passengers).stream().flatMap(Entity::getSelfAndPassengers); // Paper
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|