From 936aff06b23151d6f82bdc7542fb9c9b963fec9f Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Sun, 18 Dec 2011 22:43:08 +0100 Subject: [PATCH] Fixed //stack -s (again). --- src/main/java/com/sk89q/worldedit/commands/RegionCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java b/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java index 3e0854f23..8cc3818aa 100644 --- a/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java @@ -302,7 +302,7 @@ public class RegionCommands { final Region region = session.getSelection(player.getWorld()); final Vector size = region.getMaximumPoint().subtract(region.getMinimumPoint()); - final Vector shiftVector = dir.multiply(count * Math.abs(size.dot(size))); + final Vector shiftVector = dir.multiply(count * (Math.abs(dir.dot(size))+1)); region.expand(shiftVector); region.contract(shiftVector);