Skip to content

Commit

Permalink
fix makeshape
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyLobo committed Jul 17, 2024
1 parent 9b9275a commit 354ac07
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -2319,6 +2319,20 @@ public int makeShape(final Region region,
return makeShape(region, transform, pattern, expression, hollow, timeout);
}

/**
* Internal version of {@link EditSession#makeShape(Region, Vector3, Vector3, Pattern, String, boolean, int)}.
*
* <p>
* The Expression class is subject to change. Expressions should be provided via the string overload.
* </p>
*/
@Deprecated
public int makeShape(final Region region, final Vector3 zero, final Vector3 unit,
final Pattern pattern, final Expression expression, final boolean hollow, final int timeout)
throws ExpressionException, MaxChangedBlocksException {
return makeShape(region, new SimpleTransform(zero, unit), pattern, expression, hollow, timeout);
}

/**
* Internal version of {@link EditSession#makeShape(Region, Vector3, Vector3, Pattern, String, boolean, int)}.
*
Expand Down

0 comments on commit 354ac07

Please sign in to comment.