From 5903178c53b8a79638217ef92257a97b3d66b604 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 11 Jan 2021 13:18:24 +0000 Subject: [PATCH] Fix rotate/flip applying in the wrong order - pretty cheat fix, but it reverts to legacy FAWE behaviour --- .../java/com/sk89q/worldedit/command/ClipboardCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java index 248cfe5a4..5d5cc7f1f 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java @@ -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")); }