mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Changed the arm swing tools to also work on right click.
This commit is contained in:
parent
016a3ddd5b
commit
fa59eb29b5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user