summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityZombieHusk.patch
blob: 96da7f549957bb72e1cd5271dc423294d63695a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/EntityZombieHusk.java
+++ b/net/minecraft/server/EntityZombieHusk.java
@@ -43,7 +43,7 @@
         if (flag && this.getItemInMainHand().isEmpty() && entity instanceof EntityLiving) {
             float f = this.world.getDamageScaler(new BlockPosition(this)).b();
 
-            ((EntityLiving) entity).addEffect(new MobEffect(MobEffects.HUNGER, 140 * (int) f));
+            ((EntityLiving) entity).addEffect(new MobEffect(MobEffects.HUNGER, 140 * (int) f), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
         }
 
         return flag;