mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-24 10:17:39 +00:00
Added support for non-integer radius to the sphere, cylinder, smooth and extinguish brushes.
This commit is contained in:
parent
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user