Skip to content

Commit

Permalink
Changed the arm swing tools to also work on right click.
Browse files Browse the repository at this point in the history
  • Loading branch information
sk89q committed Jan 30, 2011
1 parent 016a3dd commit fa59eb2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/com/sk89q/worldedit/WorldEdit.java
Expand Up @@ -570,7 +570,13 @@ public boolean handleArmSwing(LocalPlayer player) {
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) {
Expand Down

0 comments on commit fa59eb2

Please sign in to comment.