Fixed //stack -s (again).

This commit is contained in:
TomyLobo 2011-12-18 22:43:08 +01:00
parent 4b3564a9ac
commit 936aff06b2

View File

@ -302,7 +302,7 @@ public class RegionCommands {
final Region region = session.getSelection(player.getWorld()); final Region region = session.getSelection(player.getWorld());
final Vector size = region.getMaximumPoint().subtract(region.getMinimumPoint()); 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.expand(shiftVector);
region.contract(shiftVector); region.contract(shiftVector);