From 0fa675cecca65ec57d23d82599ade5fd7cd1ae2f Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 12 Mar 2011 15:30:34 -0800 Subject: [PATCH] Fixed //sel not sending a CUI event. --- src/com/sk89q/worldedit/commands/SelectionCommands.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/sk89q/worldedit/commands/SelectionCommands.java b/src/com/sk89q/worldedit/commands/SelectionCommands.java index 94daaefb5..e7fb337c1 100644 --- a/src/com/sk89q/worldedit/commands/SelectionCommands.java +++ b/src/com/sk89q/worldedit/commands/SelectionCommands.java @@ -540,9 +540,11 @@ public class SelectionCommands { 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.");