From 6a8ff1f4fece6033f24d7acd75671ba34ca5054e Mon Sep 17 00:00:00 2001 From: Qveshn Date: Sat, 19 May 2018 20:07:32 +0300 Subject: [PATCH] Fix entities double transformation tested with commands stack,copy,rotate,paste 1. //stack 3 up (checked field "repetitions") 2. //copy -e //rotate 45 //rotate 45 //paste (checked transformation) --- .../sk89q/worldedit/function/operation/ForwardExtentCopy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/function/operation/ForwardExtentCopy.java b/worldedit-core/src/main/java/com/sk89q/worldedit/function/operation/ForwardExtentCopy.java index 7017fd300..e3c676914 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/function/operation/ForwardExtentCopy.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/function/operation/ForwardExtentCopy.java @@ -243,6 +243,8 @@ public class ForwardExtentCopy implements Operation { if (currentTransform == null) { currentTransform = transform; + } else { + currentTransform = currentTransform.combine(transform); } ExtentBlockCopy blockCopy = new ExtentBlockCopy(source, from, destination, to, currentTransform); @@ -251,7 +253,6 @@ public class ForwardExtentCopy implements Operation { RegionVisitor blockVisitor = new RegionVisitor(region, function); lastVisitor = blockVisitor; - currentTransform = currentTransform.combine(transform); if (copyingEntities) { ExtentEntityCopy entityCopy = new ExtentEntityCopy(from, destination, to, currentTransform);