mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
[BUGFIX] ClassCastException fix in RapidPunch
This commit is contained in:
parent
391d6f8948
commit
6bb9b848dd
1 changed files with 2 additions and 1 deletions
|
@ -56,13 +56,14 @@ public class RapidPunch {
|
|||
if (target instanceof LivingEntity && target != null) {
|
||||
LivingEntity lt = (LivingEntity) target;
|
||||
Methods.damageEntity(p, target, damage);
|
||||
if (target instanceof Player)
|
||||
if (target instanceof Player) {
|
||||
if (ChiPassive.willChiBlock((Player) target)) {
|
||||
ChiPassive.blockChi((Player) target);
|
||||
}
|
||||
if(Suffocate.isChannelingSphere((Player) target)) {
|
||||
Suffocate.remove((Player) target);
|
||||
}
|
||||
}
|
||||
lt.setNoDamageTicks(0);
|
||||
}
|
||||
cooldowns.put(p.getName(), System.currentTimeMillis());
|
||||
|
|
Loading…
Reference in a new issue