mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 12:49:32 +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 (!event.isCancelled() && bPlayer.hasElement(Element.CHI) && event.getCause() == DamageCause.FALL && bPlayer.canBendPassive(Element.CHI)) {
|
||||||
if (player.isSprinting()) {
|
if (player.isSprinting()) {
|
||||||
event.setDamage(0);
|
event.setDamage(0);
|
||||||
|
event.setCancelled(true);
|
||||||
} else {
|
} else {
|
||||||
double initdamage = event.getDamage();
|
double initdamage = event.getDamage();
|
||||||
double newdamage = event.getDamage() * ChiPassive.getFallReductionFactor();
|
double newdamage = event.getDamage() * ChiPassive.getFallReductionFactor();
|
||||||
|
|
Loading…
Reference in a new issue