summaryrefslogtreecommitdiffstats
path: root/nms-patches/MobEffectList.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/MobEffectList.patch')
-rw-r--r--nms-patches/MobEffectList.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/MobEffectList.patch b/nms-patches/MobEffectList.patch
index ea421e5b..cfe1bc3b 100644
--- a/nms-patches/MobEffectList.patch
+++ b/nms-patches/MobEffectList.patch
@@ -53,8 +53,8 @@
+ ((EntityPlayer) entityhuman).playerConnection.sendPacket(new PacketPlayOutUpdateHealth(((EntityPlayer) entityhuman).getBukkitEntity().getScaledHealth(), entityhuman.getFoodData().foodLevel, entityhuman.getFoodData().saturationLevel));
+ // CraftBukkit end
}
- } else if ((this != MobEffects.HEAL || entityliving.ca()) && (this != MobEffects.HARM || !entityliving.ca())) {
- if (this == MobEffects.HARM && !entityliving.ca() || this == MobEffects.HEAL && entityliving.ca()) {
+ } else if ((this != MobEffects.HEAL || entityliving.cc()) && (this != MobEffects.HARM || !entityliving.cc())) {
+ if (this == MobEffects.HARM && !entityliving.cc() || this == MobEffects.HEAL && entityliving.cc()) {
entityliving.damageEntity(DamageSource.MAGIC, (float) (6 << i));
}
} else {