Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 18:40:05 +01:00
Added support for non-integer radius to the sphere, cylinder, smooth and extinguish brushes.
Dieser Commit ist enthalten in:
Ursprung
57b5c5b546
Commit
0040ba9867
@ -64,7 +64,7 @@ public class BrushCommands {
|
||||
|
||||
LocalConfiguration config = we.getConfiguration();
|
||||
|
||||
int radius = args.argsLength() > 1 ? args.getInteger(1) : 2;
|
||||
double radius = args.argsLength() > 1 ? args.getDouble(1) : 2;
|
||||
if (radius > config.maxBrushRadius) {
|
||||
player.printError("Maximum allowed brush radius: "
|
||||
+ config.maxBrushRadius);
|
||||
@ -101,7 +101,7 @@ public class BrushCommands {
|
||||
|
||||
LocalConfiguration config = we.getConfiguration();
|
||||
|
||||
int radius = args.argsLength() > 1 ? args.getInteger(1) : 2;
|
||||
double radius = args.argsLength() > 1 ? args.getDouble(1) : 2;
|
||||
if (radius > config.maxBrushRadius) {
|
||||
player.printError("Maximum allowed brush radius: "
|
||||
+ config.maxBrushRadius);
|
||||
@ -182,7 +182,7 @@ public class BrushCommands {
|
||||
|
||||
LocalConfiguration config = we.getConfiguration();
|
||||
|
||||
int radius = args.argsLength() > 0 ? args.getInteger(0) : 2;
|
||||
double radius = args.argsLength() > 1 ? args.getDouble(1) : 2;
|
||||
if (radius > config.maxBrushRadius) {
|
||||
player.printError("Maximum allowed brush radius: "
|
||||
+ config.maxBrushRadius);
|
||||
@ -213,7 +213,7 @@ public class BrushCommands {
|
||||
|
||||
LocalConfiguration config = we.getConfiguration();
|
||||
|
||||
int radius = args.argsLength() > 1 ? args.getInteger(1) : 5;
|
||||
double radius = args.argsLength() > 1 ? args.getDouble(1) : 2;
|
||||
if (radius > config.maxBrushRadius) {
|
||||
player.printError("Maximum allowed brush radius: "
|
||||
+ config.maxBrushRadius);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren