Added the navigation wand.

This commit is contained in:
sk89q
2011-01-19 02:43:26 -08:00
parent 669a1911af
commit 43f9acb690
3 changed files with 12 additions and 0 deletions

View File

@ -1913,6 +1913,14 @@ public class WorldEditController {
player, session, null);
return true;
}
} else if (player.getItemInHand() == config.navigationWand
&& config.navigationWandMaxDistance > 0) {
WorldVector pos = player.getSolidBlockTrace(config.navigationWandMaxDistance);
if (pos != null) {
player.findFreePosition(pos);
} else {
player.printError("No block in sight (or too far)!");
}
}
return false;