[BUGFIX] ClassCastException fix in RapidPunch

This commit is contained in:
jack lin 2014-08-29 18:56:08 +12:00
parent 391d6f8948
commit 6bb9b848dd

View file

@ -56,13 +56,14 @@ public class RapidPunch {
if (target instanceof LivingEntity && target != null) { if (target instanceof LivingEntity && target != null) {
LivingEntity lt = (LivingEntity) target; LivingEntity lt = (LivingEntity) target;
Methods.damageEntity(p, target, damage); Methods.damageEntity(p, target, damage);
if (target instanceof Player) if (target instanceof Player) {
if (ChiPassive.willChiBlock((Player) target)) { if (ChiPassive.willChiBlock((Player) target)) {
ChiPassive.blockChi((Player) target); ChiPassive.blockChi((Player) target);
} }
if(Suffocate.isChannelingSphere((Player) target)) { if(Suffocate.isChannelingSphere((Player) target)) {
Suffocate.remove((Player) target); Suffocate.remove((Player) target);
} }
}
lt.setNoDamageTicks(0); lt.setNoDamageTicks(0);
} }
cooldowns.put(p.getName(), System.currentTimeMillis()); cooldowns.put(p.getName(), System.currentTimeMillis());