Fix rotate/flip applying in the wrong order

- pretty cheat fix, but it reverts to legacy FAWE behaviour
This commit is contained in:
dordsor21 2021-01-11 13:18:24 +00:00
parent ae6a1f1be4
commit 5903178c53
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -540,7 +540,7 @@ public class ClipboardCommands {
transform = transform.rotateY(-rotateY);
transform = transform.rotateX(-rotateX);
transform = transform.rotateZ(-rotateZ);
holder.setTransform(holder.getTransform().combine(transform));
holder.setTransform(transform.combine(holder.getTransform()));
actor.printInfo(TranslatableComponent.of("worldedit.rotate.rotated"));
}
@ -555,7 +555,7 @@ public class ClipboardCommands {
ClipboardHolder holder = session.getClipboard();
AffineTransform transform = new AffineTransform();
transform = transform.scale(direction.abs().multiply(-2).add(1, 1, 1).toVector3());
holder.setTransform(holder.getTransform().combine(transform));
holder.setTransform(transform.combine(holder.getTransform()));
actor.printInfo(TranslatableComponent.of("worldedit.flip.flipped"));
}