From fbc7cbf38951cc46b0fc0dc9388f3a46b3cf2a45 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sun, 27 Jan 2019 22:26:45 -0800 Subject: [PATCH] Anti-Cheat compatibility --- Changelog.txt | 1 + src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index b6d9f8197..305e3005e 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -8,6 +8,7 @@ Key: - Removal Version 2.1.2 + (Compatibility) mcMMO now deals custom damage type for all damage sources to be more compatible with other plugins (such as anti-cheat) (Perks) Fixed a bug where the Lucky perk wasn't adding to success (Skills) mcMMO will now listen to cancelled events to remove our temporary enchantments from tools (Skills) Fixing a bug where Shake didn't calculate success correctly diff --git a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java index 471045496..144c2ec86 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java @@ -344,7 +344,7 @@ public final class CombatUtils { */ @Deprecated public static void dealDamage(LivingEntity target, double damage, LivingEntity attacker) { - dealDamage(target, damage, DamageCause.ENTITY_ATTACK, attacker); + dealDamage(target, damage, DamageCause.CUSTOM, attacker); } /**