2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/monster/EntityZombieHusk.java
|
|
|
|
+++ b/net/minecraft/world/entity/monster/EntityZombieHusk.java
|
|
|
|
@@ -58,7 +58,7 @@
|
2018-07-20 08:04:37 +02:00
|
|
|
if (flag && this.getItemInMainHand().isEmpty() && entity instanceof EntityLiving) {
|
2021-06-11 07:00:00 +02:00
|
|
|
float f = this.level.getDamageScaler(this.getChunkCoordinates()).b();
|
2018-07-20 08:04:37 +02:00
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
- ((EntityLiving) entity).addEffect(new MobEffect(MobEffects.HUNGER, 140 * (int) f), this);
|
|
|
|
+ ((EntityLiving) entity).addEffect(new MobEffect(MobEffects.HUNGER, 140 * (int) f), this, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
2018-07-20 08:04:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return flag;
|