Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +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();
|
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) {
|
if (radius > config.maxBrushRadius) {
|
||||||
player.printError("Maximum allowed brush radius: "
|
player.printError("Maximum allowed brush radius: "
|
||||||
+ config.maxBrushRadius);
|
+ config.maxBrushRadius);
|
||||||
@ -101,7 +101,7 @@ public class BrushCommands {
|
|||||||
|
|
||||||
LocalConfiguration config = we.getConfiguration();
|
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) {
|
if (radius > config.maxBrushRadius) {
|
||||||
player.printError("Maximum allowed brush radius: "
|
player.printError("Maximum allowed brush radius: "
|
||||||
+ config.maxBrushRadius);
|
+ config.maxBrushRadius);
|
||||||
@ -182,7 +182,7 @@ public class BrushCommands {
|
|||||||
|
|
||||||
LocalConfiguration config = we.getConfiguration();
|
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) {
|
if (radius > config.maxBrushRadius) {
|
||||||
player.printError("Maximum allowed brush radius: "
|
player.printError("Maximum allowed brush radius: "
|
||||||
+ config.maxBrushRadius);
|
+ config.maxBrushRadius);
|
||||||
@ -213,7 +213,7 @@ public class BrushCommands {
|
|||||||
|
|
||||||
LocalConfiguration config = we.getConfiguration();
|
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) {
|
if (radius > config.maxBrushRadius) {
|
||||||
player.printError("Maximum allowed brush radius: "
|
player.printError("Maximum allowed brush radius: "
|
||||||
+ config.maxBrushRadius);
|
+ config.maxBrushRadius);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren