Fixed ClassCastException relating to counter-attack with Swords. Fixes

#784
This commit is contained in:
GJ
2013-03-04 21:59:16 -05:00
parent 3440833af8
commit 4210920c5f
3 changed files with 5 additions and 3 deletions

View File

@ -279,7 +279,7 @@ public final class CombatUtils {
SwordsManager swordsManager = mcMMOPlayer.getSwordsManager();
if (swordsManager.canUseCounterAttack()) {
if (swordsManager.canUseCounterAttack(damager)) {
swordsManager.counterAttackChecks((LivingEntity) damager, event.getDamage());
}
}