Actually apply source mask when using //paste -m <mask> (#1810)

This commit is contained in:
Jordan 2022-06-19 22:33:01 +01:00 committed by GitHub
parent 84f6039f41
commit 692a010c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -495,14 +495,14 @@ public class ClipboardCommands {
) throws WorldEditException { ) throws WorldEditException {
ClipboardHolder holder = session.getClipboard(); ClipboardHolder holder = session.getClipboard();
if (holder.getTransform().isIdentity() && editSession.getSourceMask() == null) {
//FAWE start - use place //FAWE start - use place
if (holder.getTransform().isIdentity() && sourceMask == null) {
place(actor, world, session, editSession, ignoreAirBlocks, atOrigin, selectPasted, place(actor, world, session, editSession, ignoreAirBlocks, atOrigin, selectPasted,
pasteEntities, pasteBiomes pasteEntities, pasteBiomes
); );
//FAWE end
return; return;
} }
//FAWE end
Clipboard clipboard = holder.getClipboard(); Clipboard clipboard = holder.getClipboard();
Region region = clipboard.getRegion(); Region region = clipboard.getRegion();
List<Component> messages = Lists.newArrayList(); List<Component> messages = Lists.newArrayList();