mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
658c0a284a
By: md_5 <git@md-5.net>
16 lines
594 B
Diff
16 lines
594 B
Diff
--- a/net/minecraft/server/WorldAccess.java
|
|
+++ b/net/minecraft/server/WorldAccess.java
|
|
@@ -5,6 +5,12 @@
|
|
WorldServer getMinecraftWorld();
|
|
|
|
default void addAllEntities(Entity entity) {
|
|
- entity.cp().forEach(this::addEntity);
|
|
+ // CraftBukkit start
|
|
+ this.addAllEntities(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DEFAULT);
|
|
}
|
|
+
|
|
+ default void addAllEntities(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) {
|
|
+ entity.cp().forEach((e) -> this.addEntity(e, reason));
|
|
+ }
|
|
+ // CraftBukkit end
|
|
}
|