Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-10 05:20:04 +01:00
Fixed //stack -s only shifting by 1 block, regardless of the selection size.
Dieser Commit ist enthalten in:
Ursprung
a5a761a126
Commit
258bdc11b0
@ -290,9 +290,12 @@ public class RegionCommands {
|
|||||||
|
|
||||||
if (args.hasFlag('s')) {
|
if (args.hasFlag('s')) {
|
||||||
try {
|
try {
|
||||||
Region region = session.getSelection(player.getWorld());
|
final Region region = session.getSelection(player.getWorld());
|
||||||
region.expand(dir.multiply(count));
|
final Vector size = region.getMaximumPoint().subtract(region.getMinimumPoint());
|
||||||
region.contract(dir.multiply(count));
|
|
||||||
|
final Vector shiftVector = dir.multiply(count * Math.abs(size.dot(size)));
|
||||||
|
region.expand(shiftVector);
|
||||||
|
region.contract(shiftVector);
|
||||||
|
|
||||||
session.getRegionSelector().learnChanges();
|
session.getRegionSelector().learnChanges();
|
||||||
session.getRegionSelector().explainRegionAdjust(player, session);
|
session.getRegionSelector().explainRegionAdjust(player, session);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren