mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-01-17 13:51:30 +01:00
Fixes #727
This commit is contained in:
parent
31d43755ab
commit
89c0a2cd2f
@ -474,7 +474,7 @@ public class ClipboardCommands extends MethodCommands {
|
|||||||
transform = transform.rotateY(-(yRotate != null ? yRotate : 0));
|
transform = transform.rotateY(-(yRotate != null ? yRotate : 0));
|
||||||
transform = transform.rotateX(-(xRotate != null ? xRotate : 0));
|
transform = transform.rotateX(-(xRotate != null ? xRotate : 0));
|
||||||
transform = transform.rotateZ(-(zRotate != null ? zRotate : 0));
|
transform = transform.rotateZ(-(zRotate != null ? zRotate : 0));
|
||||||
holder.setTransform(holder.getTransform().combine(transform));
|
holder.setTransform(transform.combine(holder.getTransform()));
|
||||||
BBC.COMMAND_ROTATE.send(player);
|
BBC.COMMAND_ROTATE.send(player);
|
||||||
if (!FawePlayer.wrap(player).hasPermission("fawe.tips"))
|
if (!FawePlayer.wrap(player).hasPermission("fawe.tips"))
|
||||||
BBC.TIP_FLIP.or(BBC.TIP_DEFORM, BBC.TIP_TRANSFORM).send(player);
|
BBC.TIP_FLIP.or(BBC.TIP_DEFORM, BBC.TIP_TRANSFORM).send(player);
|
||||||
@ -496,7 +496,7 @@ public class ClipboardCommands extends MethodCommands {
|
|||||||
Clipboard clipboard = holder.getClipboard();
|
Clipboard clipboard = holder.getClipboard();
|
||||||
AffineTransform transform = new AffineTransform();
|
AffineTransform transform = new AffineTransform();
|
||||||
transform = transform.scale(direction.positive().multiply(-2).add(1, 1, 1));
|
transform = transform.scale(direction.positive().multiply(-2).add(1, 1, 1));
|
||||||
holder.setTransform(holder.getTransform().combine(transform));
|
holder.setTransform(transform.combine(holder.getTransform()));
|
||||||
BBC.COMMAND_FLIPPED.send(player);
|
BBC.COMMAND_FLIPPED.send(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,7 +305,9 @@ public class AffineTransform implements Transform, Serializable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Transform combine(Transform other) {
|
public Transform combine(Transform other) {
|
||||||
if (other instanceof AffineTransform) {
|
if (other instanceof Identity || other.isIdentity()) {
|
||||||
|
return this;
|
||||||
|
} else if (other instanceof AffineTransform) {
|
||||||
return concatenate((AffineTransform) other);
|
return concatenate((AffineTransform) other);
|
||||||
} else {
|
} else {
|
||||||
return new CombinedTransform(this, other);
|
return new CombinedTransform(this, other);
|
||||||
|
Loading…
Reference in New Issue
Block a user