mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-10 08:15:27 +02:00
Fixed not checking if an Entity was a LivingEntity before applying the
Counter-Attack ability.
This commit is contained in:
@@ -209,8 +209,10 @@ public class Combat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (configInstance.getSwordsPVE() && !(damager instanceof Player)) {
|
if (configInstance.getSwordsPVE() && !(damager instanceof Player)) {
|
||||||
|
if (damager instanceof LivingEntity) {
|
||||||
swordsManager.counterAttackChecks((LivingEntity) damager, event.getDamage());
|
swordsManager.counterAttackChecks((LivingEntity) damager, event.getDamage());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (configInstance.getAcrobaticsPVP() && damager instanceof Player) {
|
if (configInstance.getAcrobaticsPVP() && damager instanceof Player) {
|
||||||
acroManager.dodgeCheck(event);
|
acroManager.dodgeCheck(event);
|
||||||
|
Reference in New Issue
Block a user