From 5fb442c7c52361750a2c8bd31108e14fb0bfa913 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 29 Jan 2011 23:24:42 -0800 Subject: [PATCH] Added distance to //size. --- src/com/sk89q/worldedit/commands/SelectionCommands.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/sk89q/worldedit/commands/SelectionCommands.java b/src/com/sk89q/worldedit/commands/SelectionCommands.java index 997d6c3b0..5956a18dc 100644 --- a/src/com/sk89q/worldedit/commands/SelectionCommands.java +++ b/src/com/sk89q/worldedit/commands/SelectionCommands.java @@ -353,6 +353,7 @@ public class SelectionCommands { player.print("First position: " + session.getPos1()); player.print("Second position: " + session.getPos2()); player.print("Size: " + size); + player.print("Distance: " + region.getMaximumPoint().distance(region.getMinimumPoint())); player.print("# of blocks: " + region.getSize()); }