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
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2021-02-16 17:08:29 +00:00
|
|
|
index 22f3721ac351acb11ba8475cc7e2d35dc2e78259..aa1807502131893f29be5918b533aabe83f87514 100644
|
2020-10-05 03:46:18 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
2021-01-11 01:44:06 +00:00
|
|
|
@@ -3085,7 +3085,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
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() {
|