Merge pull request #209 from kingbirdy/fix/build-cancels-bending

Fix right clicking on block cancelling bending
This commit is contained in:
MistPhizzle 2015-08-20 00:40:00 -04:00
commit b6131bf79d

View file

@ -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);