summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityWitherSkull.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityWitherSkull.patch')
-rw-r--r--nms-patches/EntityWitherSkull.patch8
1 files changed, 7 insertions, 1 deletions
diff --git a/nms-patches/EntityWitherSkull.patch b/nms-patches/EntityWitherSkull.patch
index c700d1a9..8e3e63f7 100644
--- a/nms-patches/EntityWitherSkull.patch
+++ b/nms-patches/EntityWitherSkull.patch
@@ -22,7 +22,13 @@
}
}
} else {
-@@ -54,7 +56,15 @@
+@@ -49,12 +51,20 @@
+ }
+
+ if (b0 > 0) {
+- ((EntityLiving) movingobjectposition.entity).addEffect(new MobEffect(MobEffects.WITHER, 20 * b0, 1));
++ ((EntityLiving) movingobjectposition.entity).addEffect(new MobEffect(MobEffects.WITHER, 20 * b0, 1), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
+ }
}
}