mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Uses setDirection
SweepBrush.java should be correct
This commit is contained in:
parent
73d70527f3
commit
c725dd0b18
@ -85,14 +85,16 @@ public class SweepBrush implements Brush, ResettableTool {
|
|||||||
Clipboard clipboard = holder.getClipboard();
|
Clipboard clipboard = holder.getClipboard();
|
||||||
|
|
||||||
BlockVector3 dimensions = clipboard.getDimensions();
|
BlockVector3 dimensions = clipboard.getDimensions();
|
||||||
AffineTransform transform = new AffineTransform();
|
|
||||||
if (dimensions.getBlockX() > dimensions.getBlockZ()) {
|
|
||||||
transform = transform.rotateY(90);
|
|
||||||
}
|
|
||||||
double quality = Math.max(dimensions.getBlockX(), dimensions.getBlockZ());
|
double quality = Math.max(dimensions.getBlockX(), dimensions.getBlockZ());
|
||||||
|
|
||||||
|
AffineTransform transform = new AffineTransform();
|
||||||
|
|
||||||
ClipboardSpline spline = new ClipboardSpline(editSession, holder, interpol, transform, nodes.size());
|
ClipboardSpline spline = new ClipboardSpline(editSession, holder, interpol, transform, nodes.size());
|
||||||
|
|
||||||
|
if (dimensions.getBlockX() > dimensions.getBlockZ()) {
|
||||||
|
spline.setDirection(Vector2.at(0, 1));
|
||||||
|
}
|
||||||
|
|
||||||
switch (copies) {
|
switch (copies) {
|
||||||
case 1: {
|
case 1: {
|
||||||
spline.pastePosition(0D);
|
spline.pastePosition(0D);
|
||||||
|
Loading…
Reference in New Issue
Block a user