Fixed not checking if an Entity was a LivingEntity before applying the

Counter-Attack ability.
This commit is contained in:
GJ 2012-06-22 09:47:18 -04:00
parent b331fa353b
commit 20b73dcc84

View File

@ -209,7 +209,9 @@ public class Combat {
}
if (configInstance.getSwordsPVE() && !(damager instanceof Player)) {
swordsManager.counterAttackChecks((LivingEntity) damager, event.getDamage());
if (damager instanceof LivingEntity) {
swordsManager.counterAttackChecks((LivingEntity) damager, event.getDamage());
}
}
if (configInstance.getAcrobaticsPVP() && damager instanceof Player) {