2020-10-05 03:46:18 +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
|
|
|
|
|
|
|
|
|
2021-03-16 07:19:45 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
|
2021-03-16 13:04:28 +00:00
|
|
|
index 80f3e124ad6230789e27e8ddf20be08befb0a86f..04c2b1ed98efc47b0f5a46668f4aef1c6531e73e 100644
|
2021-03-16 07:19:45 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
|
2021-03-16 13:04:28 +00:00
|
|
|
@@ -3177,7 +3177,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, ne
|
2020-10-05 03:46:18 +00:00
|
|
|
}
|
|
|
|
|
2021-01-16 02:18:08 +00:00
|
|
|
public Stream<Entity> recursiveStream() {
|
|
|
|
- return Stream.concat(Stream.of(this), this.passengers.stream().flatMap(Entity::recursiveStream));
|
|
|
|
+ return Stream.concat(Stream.of(this), com.google.common.collect.ImmutableList.copyOf(this.passengers).stream().flatMap(Entity::recursiveStream)); // Paper
|
2020-10-05 03:46:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean hasSinglePlayerPassenger() {
|