mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix rotate/flip applying in the wrong order
- pretty cheat fix, but it reverts to legacy FAWE behaviour
This commit is contained in:
parent
ae6a1f1be4
commit
5903178c53
@ -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"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user