mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
Don't cache location for circle brush, fix #970
Also, allow filled circles (very cool feature)
This commit is contained in:
@ -1985,8 +1985,6 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
||||
|
||||
double threshold = 0.5;
|
||||
|
||||
LocalBlockVectorSet set = new LocalBlockVectorSet();
|
||||
|
||||
double nextXn = 0;
|
||||
double dx;
|
||||
double dy;
|
||||
|
@ -221,13 +221,16 @@ public class BrushCommands {
|
||||
desc = "Creates a circle, which revolves around your facing direction"
|
||||
)
|
||||
@CommandPermissions("worldedit.brush.sphere")
|
||||
public void circleBrush(Player player, InjectedValueAccess context,
|
||||
public void circleBrush(InjectedValueAccess context,
|
||||
@Arg(desc = "Pattern")
|
||||
Pattern fill,
|
||||
@Arg(desc = "The radius to sample for blending", def = "5")
|
||||
Expression radius) throws WorldEditException {
|
||||
Expression radius,
|
||||
@Arg(name = "filled", desc = "Whether the circle should be filled", def = "false")
|
||||
boolean filled
|
||||
) throws WorldEditException {
|
||||
worldEdit.checkMaxBrushRadius(radius);
|
||||
set(context, new CircleBrush(player)).setSize(radius).setFill(fill);
|
||||
set(context, new CircleBrush(filled)).setSize(radius).setFill(fill);
|
||||
}
|
||||
|
||||
@Command(
|
||||
|
Reference in New Issue
Block a user