mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-08-17 08:57:40 +00:00
Fix fall damage animation
- Fixed fall damage animation activating for chiblockers
This commit is contained in:
parent
5d244d0eac
commit
d93d34b286
|
@ -827,6 +827,7 @@ public class PKListener implements Listener {
|
|||
if (!event.isCancelled() && bPlayer.hasElement(Element.CHI) && event.getCause() == DamageCause.FALL && bPlayer.canBendPassive(Element.CHI)) {
|
||||
if (player.isSprinting()) {
|
||||
event.setDamage(0);
|
||||
event.setCancelled(true);
|
||||
} else {
|
||||
double initdamage = event.getDamage();
|
||||
double newdamage = event.getDamage() * ChiPassive.getFallReductionFactor();
|
||||
|
|
Loading…
Reference in a new issue