Changed the arm swing tools to also work on right click.

This commit is contained in:
sk89q 2011-01-30 00:42:31 -08:00
parent 016a3ddd5b
commit fa59eb29b5

View File

@ -570,7 +570,13 @@ public class WorldEdit {
public boolean handleRightClick(LocalPlayer player) { public boolean handleRightClick(LocalPlayer player) {
LocalSession session = getSession(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(); CompassMode mode = session.getCompassMode();
if (mode == CompassMode.JUMPTO) { if (mode == CompassMode.JUMPTO) {