Skip to content

Commit

Permalink
Fixed //sel not sending a CUI event.
Browse files Browse the repository at this point in the history
  • Loading branch information
sk89q committed Mar 12, 2011
1 parent 94ab610 commit 0fa675c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/sk89q/worldedit/commands/SelectionCommands.java
Expand Up @@ -540,9 +540,11 @@ public static void select(CommandContext args, WorldEdit we,
String typeName = args.getString(0);
if (typeName.equalsIgnoreCase("cuboid")) {
session.setRegionSelector(player.getWorld(), new CuboidRegionSelector());
session.dispatchCUISelection(player);
player.print("Cuboid: left click for point 1, right click for point 2");
} else if (typeName.equalsIgnoreCase("poly")) {
session.setRegionSelector(player.getWorld(), new Polygonal2DRegionSelector());
session.dispatchCUISelection(player);
player.print("2D polygon selector: Left/right click to add a point.");
} else {
player.printError("Only 'cuboid' and 'poly' are accepted.");
Expand Down

0 comments on commit 0fa675c

Please sign in to comment.