mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Apply transforms to vectors in //paste -s.
This commit is contained in:
parent
e0c8776f0f
commit
28d45870e2
@ -159,8 +159,8 @@ public class ClipboardCommands {
|
|||||||
|
|
||||||
if (selectPasted) {
|
if (selectPasted) {
|
||||||
Vector clipboardOffset = clipboard.getRegion().getMinimumPoint().subtract(clipboard.getOrigin());
|
Vector clipboardOffset = clipboard.getRegion().getMinimumPoint().subtract(clipboard.getOrigin());
|
||||||
Vector realTo = to.add(clipboardOffset);
|
Vector realTo = to.add(holder.getTransform().apply(clipboardOffset));
|
||||||
Vector max = realTo.add(region.getMaximumPoint().subtract(region.getMinimumPoint()));
|
Vector max = realTo.add(holder.getTransform().apply(region.getMaximumPoint().subtract(region.getMinimumPoint())));
|
||||||
RegionSelector selector = new CuboidRegionSelector(player.getWorld(), realTo, max);
|
RegionSelector selector = new CuboidRegionSelector(player.getWorld(), realTo, max);
|
||||||
session.setRegionSelector(player.getWorld(), selector);
|
session.setRegionSelector(player.getWorld(), selector);
|
||||||
selector.learnChanges();
|
selector.learnChanges();
|
||||||
|
Loading…
Reference in New Issue
Block a user