SPIGOT-6663: Chicken Jockeys chickens don't despawn

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-07-22 09:53:26 +10:00
parent bfc74e8628
commit 2ccd460e09
10 changed files with 43 additions and 29 deletions

View File

@@ -661,7 +661,7 @@ public class CraftEventFactory {
org.bukkit.entity.AnimalTamer bukkitTamer = (tamer != null ? tamer.getBukkitEntity() : null);
CraftServer craftServer = (CraftServer) bukkitEntity.getServer();
entity.persistenceRequired = true;
entity.setPersistenceRequired(true);
EntityTameEvent event = new EntityTameEvent((LivingEntity) bukkitEntity, bukkitTamer);
craftServer.getPluginManager().callEvent(event);