Merge pull request #528 from Pieter12345/master

Fix stack command diagonal shifting with -s flag
This commit is contained in:
Kenzie Togami 2019-10-28 18:39:30 -07:00 committed by GitHub
commit 94bdd7678d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,9 +373,9 @@ public class RegionCommands {
if (moveSelection) {
try {
final BlockVector3 size = region.getMaximumPoint().subtract(region.getMinimumPoint());
final BlockVector3 size = region.getMaximumPoint().subtract(region.getMinimumPoint()).add(1, 1, 1);
final BlockVector3 shiftVector = direction.toVector3().multiply(count * (Math.abs(direction.dot(size)) + 1)).toBlockPoint();
final BlockVector3 shiftVector = direction.multiply(size).multiply(count);
region.shift(shiftVector);
session.getRegionSelector(world).learnChanges();