Re-implemented triple jumps
This commit is contained in:
parent
d3cb99f431
commit
59699f930e
@ -127,7 +127,7 @@ public class PerkDoubleJump extends Perk
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Recharge.Instance.useForce(player, "Double Jump", 500);
|
//Recharge.Instance.useForce(player, "Double Jump", 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
@ -147,8 +147,8 @@ public class PerkDoubleJump extends Perk
|
|||||||
if (_recharge > 0 && !Recharge.Instance.usable(player, GetName()))
|
if (_recharge > 0 && !Recharge.Instance.usable(player, GetName()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!Recharge.Instance.usable(player, "Double Jump"))
|
// if (!Recharge.Instance.usable(player, "Double Jump"))
|
||||||
continue;
|
// continue;
|
||||||
|
|
||||||
if (player.isOnGround() || (UtilBlock.solid(player.getLocation().getBlock().getRelative(BlockFace.DOWN)) && UtilBlock.solid(player.getLocation().getBlock())))
|
if (player.isOnGround() || (UtilBlock.solid(player.getLocation().getBlock().getRelative(BlockFace.DOWN)) && UtilBlock.solid(player.getLocation().getBlock())))
|
||||||
player.setAllowFlight(true);
|
player.setAllowFlight(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user