*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;
Mask sourceMask = editSession.getSourceMask();
if (transform != null) {
if (transform != null && !transform.isIdentity()) {
extent = new BlockTransformExtent(clipboard, transform, world.getWorldData().getBlockRegistry());
} else if (sourceMask == null) {
paste(editSession, to, pasteAir);
return editSession;
}
ForwardExtentCopy copy = new ForwardExtentCopy(extent, clipboard.getRegion(), clipboard.getOrigin(), editSession, to);
if (transform != null) {
if (transform != null && !transform.isIdentity()) {
copy.setTransform(transform);
}
if (sourceMask != null) {