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