Skip to content

Commit

Permalink
Limit //curve thickness by max-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Oct 19, 2023
1 parent 4337ca1 commit a24ea43
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public int curve(Actor actor, EditSession editSession,
return 0;
}
checkCommandArgument(thickness >= 0, "Thickness must be >= 0");
WorldEdit.getInstance().checkMaxRadius(thickness);

ConvexPolyhedralRegion cpregion = (ConvexPolyhedralRegion) region;
List<BlockVector3> vectors = new ArrayList<>(cpregion.getVertices());
Expand Down

0 comments on commit a24ea43

Please sign in to comment.