summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nms-patches/EntityLiving.patch5
1 files changed, 2 insertions, 3 deletions
diff --git a/nms-patches/EntityLiving.patch b/nms-patches/EntityLiving.patch
index ca77592f..1a7b6da4 100644
--- a/nms-patches/EntityLiving.patch
+++ b/nms-patches/EntityLiving.patch
@@ -270,11 +270,10 @@
this.a(mobeffect);
return true;
- } else if (mobeffect1.a(mobeffect)) {
-- this.a(mobeffect1, true);
+ // CraftBukkit start
+ } else if (event.isOverride()) {
-+ this.effects.put(mobeffect.getMobEffect(), mobeffect);
-+ this.a(mobeffect, true);
++ mobeffect1.a(mobeffect);
+ this.a(mobeffect1, true);
+ // CraftBukkit end
return true;
} else {