diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ServerLevelAccessor.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ServerLevelAccessor.java.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ServerLevelAccessor.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ServerLevelAccessor.java.patch new file mode 100644 index 0000000000..5318edb2bd --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ServerLevelAccessor.java.patch @@ -0,0 +1,21 @@ +--- a/net/minecraft/world/level/ServerLevelAccessor.java ++++ b/net/minecraft/world/level/ServerLevelAccessor.java +@@ -8,6 +8,17 @@ + ServerLevel getLevel(); + + default void addFreshEntityWithPassengers(Entity entity) { +- entity.getSelfAndPassengers().forEach(this::addFreshEntity); ++ // CraftBukkit start ++ this.addFreshEntityWithPassengers(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DEFAULT); + } ++ ++ default void addFreshEntityWithPassengers(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) { ++ entity.getSelfAndPassengers().forEach((e) -> this.addFreshEntity(e, reason)); ++ } ++ ++ @Override ++ default ServerLevel getMinecraftWorld() { ++ return getLevel(); ++ } ++ // CraftBukkit end + } |