diff options
Diffstat (limited to 'nms-patches/EntityParrot.patch')
-rw-r--r-- | nms-patches/EntityParrot.patch | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nms-patches/EntityParrot.patch b/nms-patches/EntityParrot.patch index 07a227bb..54bd63ae 100644 --- a/nms-patches/EntityParrot.patch +++ b/nms-patches/EntityParrot.patch @@ -18,6 +18,15 @@ this.c(entityhuman); this.s(true); this.world.broadcastEntityEffect(this, (byte) 7); +@@ -190,7 +190,7 @@ + itemstack.subtract(1); + } + +- this.addEffect(new MobEffect(MobEffects.POISON, 900)); ++ this.addEffect(new MobEffect(MobEffects.POISON, 900), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD); // CraftBukkit + if (entityhuman.u() || !this.bl()) { + this.damageEntity(DamageSource.playerAttack(entityhuman), Float.MAX_VALUE); + } @@ -310,7 +310,8 @@ return false; } else { |