mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-04 11:15:21 +00:00
Merge pull request #425 from Simplicitee/master
Fix fall damage animation
This commit is contained in:
commit
bb4485e4f7
1 changed files with 1 additions and 0 deletions
|
@ -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