3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 02:20:07 +01:00

Fix rotate/flip applying in the wrong order

- pretty cheat fix, but it reverts to legacy FAWE behaviour
Dieser Commit ist enthalten in:
dordsor21 2021-01-11 13:18:24 +00:00
Ursprung ae6a1f1be4
Commit 5903178c53
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

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