From fa59eb29b5db6a700b565d38a209fc82002e1fcc Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 30 Jan 2011 00:42:31 -0800 Subject: [PATCH] Changed the arm swing tools to also work on right click. --- src/com/sk89q/worldedit/WorldEdit.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/com/sk89q/worldedit/WorldEdit.java b/src/com/sk89q/worldedit/WorldEdit.java index cd172420d..cf149c3a5 100644 --- a/src/com/sk89q/worldedit/WorldEdit.java +++ b/src/com/sk89q/worldedit/WorldEdit.java @@ -570,7 +570,13 @@ public class WorldEdit { public boolean handleRightClick(LocalPlayer player) { LocalSession session = getSession(player); - if (player.getItemInHand() == config.navigationWand) { + if (player.isHoldingPickAxe()) { + if (session.getArmSwingMode() != null) { + session.getArmSwingMode().act(server, config, + player, session, null); + return true; + } + } else if (player.getItemInHand() == config.navigationWand) { CompassMode mode = session.getCompassMode(); if (mode == CompassMode.JUMPTO) {