2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/WorldAccess.java
|
|
|
|
+++ b/net/minecraft/world/level/WorldAccess.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -8,6 +8,17 @@
|
|
|
|
WorldServer getLevel();
|
2020-08-11 23:00:00 +02:00
|
|
|
|
|
|
|
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
|
|
|
+ }
|
2021-06-11 07:00:00 +02:00
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ default WorldServer getMinecraftWorld() {
|
|
|
|
+ return getLevel();
|
|
|
|
+ }
|
2020-08-11 23:00:00 +02:00
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|