mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Fixed the order of the tool checking code you can now use edit wand again.
This commit is contained in:
parent
3bf7c08ad6
commit
98d1a0be05
@ -97,12 +97,7 @@ public class WorldEditSMListener extends PluginListener {
|
||||
WorldEditPlayer player = new SMWorldEditPlayer(modPlayer);
|
||||
WorldEditSession session = worldEdit.getSession(player);
|
||||
|
||||
if (player.isHoldingPickAxe()) {
|
||||
if (session.hasSuperPickAxe()) {
|
||||
return etc.getMCServer().e.d(blockClicked.getX(),
|
||||
blockClicked.getY(), blockClicked.getZ(), 0);
|
||||
}
|
||||
} else if (player.getItemInHand() == 271) {
|
||||
if (player.getItemInHand() == 271) {
|
||||
if (session.isToolControlEnabled()) {
|
||||
Vector cur = Vector.toBlockPoint(blockClicked.getX(),
|
||||
blockClicked.getY(),
|
||||
@ -120,6 +115,11 @@ public class WorldEditSMListener extends PluginListener {
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (player.isHoldingPickAxe()) {
|
||||
if (session.hasSuperPickAxe()) {
|
||||
return etc.getMCServer().e.d(blockClicked.getX(),
|
||||
blockClicked.getY(), blockClicked.getZ(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user