3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

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)
Dieser Commit ist enthalten in:
Qveshn 2018-05-19 20:07:32 +03:00
Ursprung f67f2ed93e
Commit 6a8ff1f4fe

Datei anzeigen

@ -243,6 +243,8 @@ public class ForwardExtentCopy implements Operation {
if (currentTransform == null) { if (currentTransform == null) {
currentTransform = transform; currentTransform = transform;
} else {
currentTransform = currentTransform.combine(transform);
} }
ExtentBlockCopy blockCopy = new ExtentBlockCopy(source, from, destination, to, currentTransform); ExtentBlockCopy blockCopy = new ExtentBlockCopy(source, from, destination, to, currentTransform);
@ -251,7 +253,6 @@ public class ForwardExtentCopy implements Operation {
RegionVisitor blockVisitor = new RegionVisitor(region, function); RegionVisitor blockVisitor = new RegionVisitor(region, function);
lastVisitor = blockVisitor; lastVisitor = blockVisitor;
currentTransform = currentTransform.combine(transform);
if (copyingEntities) { if (copyingEntities) {
ExtentEntityCopy entityCopy = new ExtentEntityCopy(from, destination, to, currentTransform); ExtentEntityCopy entityCopy = new ExtentEntityCopy(from, destination, to, currentTransform);