2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/level/WorldAccess.java
|
|
|
|
+++ b/net/minecraft/world/level/WorldAccess.java
|
|
|
|
@@ -8,6 +8,12 @@
|
2020-08-12 07:00:00 +10:00
|
|
|
WorldServer getMinecraftWorld();
|
|
|
|
|
|
|
|
default void addAllEntities(Entity entity) {
|
2021-01-16 12:00:00 +11:00
|
|
|
- entity.recursiveStream().forEach(this::addEntity);
|
2020-08-12 07:00:00 +10:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ this.addAllEntities(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DEFAULT);
|
|
|
|
}
|
|
|
|
+
|
2020-11-17 13:41:47 +11:00
|
|
|
+ default void addAllEntities(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) {
|
2021-01-16 12:00:00 +11:00
|
|
|
+ entity.recursiveStream().forEach((e) -> this.addEntity(e, reason));
|
2020-08-12 07:00:00 +10:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|