3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-05 11:00:05 +01:00

Fixed //stack -s only shifting by 1 block, regardless of the selection size.

Dieser Commit ist enthalten in:
TomyLobo 2011-12-05 23:21:51 +01:00
Ursprung a5a761a126
Commit 258bdc11b0

Datei anzeigen

@ -290,9 +290,12 @@ public class RegionCommands {
if (args.hasFlag('s')) {
try {
Region region = session.getSelection(player.getWorld());
region.expand(dir.multiply(count));
region.contract(dir.multiply(count));
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)));
region.expand(shiftVector);
region.contract(shiftVector);
session.getRegionSelector().learnChanges();
session.getRegionSelector().explainRegionAdjust(player, session);