mirror of
https://github.com/taoneill/war.git
synced 2024-11-27 04:35:35 +01:00
Merge pull request #424 from ryansch/on-player-interact-fix
Fixed a missing RIGHT_CLICK_AIR action.
This commit is contained in:
commit
5d9b654240
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user