浏览代码

Anti-Cheat compatibility

nossr50 6 年之前
父节点
当前提交
fbc7cbf389
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java

+ 1 - 0
Changelog.txt

@@ -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

+ 1 - 1
src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java

@@ -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);
     }
     }
 
 
     /**
     /**