mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Merge pull request #209 from kingbirdy/fix/build-cancels-bending
Fix right clicking on block cancelling bending
This commit is contained in:
commit
b6131bf79d
1 changed files with 0 additions and 2 deletions
|
@ -855,8 +855,6 @@ public class PKListener implements Listener {
|
||||||
|
|
||||||
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
||||||
String ability = GeneralMethods.getBoundAbility(player);
|
String ability = GeneralMethods.getBoundAbility(player);
|
||||||
if (!ability.equalsIgnoreCase("airspout")) //prevents airspout from cancelling due to right click
|
|
||||||
GeneralMethods.cooldowns.put(player.getName(), System.currentTimeMillis());
|
|
||||||
ComboManager.addComboAbility(player, ClickType.RIGHT_CLICK);
|
ComboManager.addComboAbility(player, ClickType.RIGHT_CLICK);
|
||||||
if (ability != null && ability.equalsIgnoreCase("EarthSmash"))
|
if (ability != null && ability.equalsIgnoreCase("EarthSmash"))
|
||||||
new EarthSmash(player, ClickType.RIGHT_CLICK);
|
new EarthSmash(player, ClickType.RIGHT_CLICK);
|
||||||
|
|
Loading…
Reference in a new issue