mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 09:59:18 +00:00
fix some annoying damage introductions from last commits change
This commit is contained in:
parent
da04657957
commit
88c1debab9
|
@ -380,6 +380,10 @@ public class PKListener implements Listener {
|
||||||
abil.remove();
|
abil.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CoreAbility.getAbility(player, FireJet.class) != null && event.getCause() == DamageCause.FLY_INTO_WALL) {
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
|
|
||||||
if (bPlayer.isElementToggled(Element.FIRE)) {
|
if (bPlayer.isElementToggled(Element.FIRE)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,8 +116,9 @@ public class FireJet extends FireAbility {
|
||||||
@Override
|
@Override
|
||||||
public void remove() {
|
public void remove() {
|
||||||
super.remove();
|
super.remove();
|
||||||
|
this.player.setGliding(false);
|
||||||
flightHandler.removeInstance(this.player, this.getName());
|
flightHandler.removeInstance(this.player, this.getName());
|
||||||
player.setGliding(false);
|
this.player.setFallDistance(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue