Merge pull request #424 from ryansch/on-player-interact-fix

Fixed a missing RIGHT_CLICK_AIR action.
This commit is contained in:
taoneill 2012-04-01 07:09:58 -07:00
commit 5d9b654240

View File

@ -210,7 +210,7 @@ public class WarPlayerListener implements Listener {
if (player.getItemInHand().getType() == Material.WOOD_SWORD && War.war.isWandBearer(player)) {
String zoneName = War.war.getWandBearerZone(player);
ZoneSetter setter = new ZoneSetter(player, zoneName);
if (event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.LEFT_CLICK_AIR) {
if (event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_AIR) {
War.war.badMsg(player, "Too far.");
} else if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
setter.placeCorner1(event.getClickedBlock());