From 9dad03430b29b962c84aefb040343143eec811f9 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 18 Nov 2016 10:57:53 +1100 Subject: [PATCH] SPIGOT-2777: Mobs not being angered by snowballs By: md_5 --- paper-server/nms-patches/EntityLiving.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/EntityLiving.patch b/paper-server/nms-patches/EntityLiving.patch index f5ea0bf7e4..de88d63781 100644 --- a/paper-server/nms-patches/EntityLiving.patch +++ b/paper-server/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());