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

@@ -57,7 +57,7 @@
- this.removeEffect(MobEffects.WEAKNESS);
- this.addEffect(new MobEffect(MobEffects.DAMAGE_BOOST, i, Math.min(this.level.getDifficulty().a() - 1, 0)));
+ // CraftBukkit start
+ this.persistenceRequired = true; // CraftBukkit - SPIGOT-4684 update persistence
+ this.setPersistenceRequired(true); // CraftBukkit - SPIGOT-4684 update persistence
+ this.removeEffect(MobEffects.WEAKNESS, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.CONVERSION);
+ this.addEffect(new MobEffect(MobEffects.DAMAGE_BOOST, i, Math.min(this.level.getDifficulty().a() - 1, 0)), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.CONVERSION);
+ // CraftBukkit end