Anti-Cheat compatibility

This commit is contained in:
nossr50 2019-01-27 22:26:45 -08:00
parent 6f81cf7384
commit fbc7cbf389
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Key:
- Removal - Removal
Version 2.1.2 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 (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) 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 (Skills) Fixing a bug where Shake didn't calculate success correctly

View File

@ -344,7 +344,7 @@ public final class CombatUtils {
*/ */
@Deprecated @Deprecated
public static void dealDamage(LivingEntity target, double damage, LivingEntity attacker) { public static void dealDamage(LivingEntity target, double damage, LivingEntity attacker) {
dealDamage(target, damage, DamageCause.ENTITY_ATTACK, attacker); dealDamage(target, damage, DamageCause.CUSTOM, attacker);
} }
/** /**