2021-06-14 16:58:00 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: jmp <jasonpenilla2@me.com>
|
|
|
|
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-16 00:50:38 +00:00
|
|
|
index 73b19cfa45225d838e5e7fd6a0903ab9f13a5859..2e2effe72235bda3c9ef985840d4322551625ed8 100644
|
2021-06-14 16:58:00 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
|
|
|
|
@@ -3413,7 +3413,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, n
|
|
|
|
}
|
|
|
|
|
|
|
|
private Stream<Entity> getIndirectPassengersStream() {
|
|
|
|
- return this.passengers.stream().flatMap(Entity::getSelfAndPassengers);
|
|
|
|
+ return ImmutableList.copyOf(this.passengers).stream().flatMap(Entity::getSelfAndPassengers); // Paper
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|