@@ -4,13 +4,13 @@
|
||||
WorldServer getMinecraftWorld();
|
||||
|
||||
default void addAllEntities(Entity entity) {
|
||||
- entity.cp().forEach(this::addEntity);
|
||||
- entity.recursiveStream().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));
|
||||
+ entity.recursiveStream().forEach((e) -> this.addEntity(e, reason));
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user