From 0c3bb7648754cb28eaea8d928708aae32f4ec8b4 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 18 Nov 2016 10:57:53 +1100 Subject: [PATCH] SPIGOT-2777: Mobs not being angered by snowballs --- nms-patches/EntityLiving.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/EntityLiving.patch b/nms-patches/EntityLiving.patch index f5ea0bf7e4..de88d63781 100644 --- a/nms-patches/EntityLiving.patch +++ b/nms-patches/EntityLiving.patch @@ -492,7 +492,7 @@ + + absorptionModifier = (float) -event.getDamage(DamageModifier.ABSORPTION); + this.setAbsorptionHearts(Math.max(this.getAbsorptionHearts() - absorptionModifier, 0.0F)); -+ if (f > 0) { ++ if (f > 0 || !human) { + if (human) { + // PAIL: Be sure to drag all this code from the EntityHuman subclass each update. + ((EntityHuman) this).applyExhaustion(damagesource.getExhaustionCost());