*Also check if identity

This commit is contained in:
Jesse Boyd 2017-06-25 19:31:08 +10:00
parent 36a140e61d
commit a7cd6c8715
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -126,14 +126,14 @@ public class Schematic {
} }
Extent extent = clipboard; Extent extent = clipboard;
Mask sourceMask = editSession.getSourceMask(); Mask sourceMask = editSession.getSourceMask();
if (transform != null) { if (transform != null && !transform.isIdentity()) {
extent = new BlockTransformExtent(clipboard, transform, world.getWorldData().getBlockRegistry()); extent = new BlockTransformExtent(clipboard, transform, world.getWorldData().getBlockRegistry());
} else if (sourceMask == null) { } else if (sourceMask == null) {
paste(editSession, to, pasteAir); paste(editSession, to, pasteAir);
return editSession; return editSession;
} }
ForwardExtentCopy copy = new ForwardExtentCopy(extent, clipboard.getRegion(), clipboard.getOrigin(), editSession, to); ForwardExtentCopy copy = new ForwardExtentCopy(extent, clipboard.getRegion(), clipboard.getOrigin(), editSession, to);
if (transform != null) { if (transform != null && !transform.isIdentity()) {
copy.setTransform(transform); copy.setTransform(transform);
} }
if (sourceMask != null) { if (sourceMask != null) {