Browse Source

Anti-Cheat compatibility

nossr50 6 năm trước cách đây
mục cha
commit
fbc7cbf389

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