3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-05 11:00:05 +01:00

Added support for non-integer radius to the sphere, cylinder, smooth and extinguish brushes.

Dieser Commit ist enthalten in:
TomyLobo 2011-08-07 05:19:55 +02:00
Ursprung 57b5c5b546
Commit 0040ba9867

Datei anzeigen

@ -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);