Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-07 00:22:51 +02:00
Added lower bounds clamping to some of the arguments.
Dieser Commit ist enthalten in:
Ursprung
c70a7914da
Commit
d1a807f25f
@ -265,8 +265,8 @@ public class WorldEdit extends Plugin {
|
|||||||
} else if (split[0].equalsIgnoreCase("/editfill")) {
|
} else if (split[0].equalsIgnoreCase("/editfill")) {
|
||||||
checkArgs(split, 1);
|
checkArgs(split, 1);
|
||||||
int blockType = getItem(split[1]);
|
int blockType = getItem(split[1]);
|
||||||
int radius = split.length > 2 ? Integer.parseInt(split[2]) : 50;
|
int radius = split.length > 2 ? Math.max(1, Integer.parseInt(split[2])) : 50;
|
||||||
int depth = split.length > 3 ? Integer.parseInt(split[3]) : 1;
|
int depth = split.length > 3 ? Math.max(1, Integer.parseInt(split[3])) : 1;
|
||||||
|
|
||||||
int cx = (int)Math.floor(player.getX());
|
int cx = (int)Math.floor(player.getX());
|
||||||
int cy = (int)Math.floor(player.getY());
|
int cy = (int)Math.floor(player.getY());
|
||||||
@ -285,7 +285,7 @@ public class WorldEdit extends Plugin {
|
|||||||
|
|
||||||
// Remove blocks above current position
|
// Remove blocks above current position
|
||||||
} else if (split[0].equalsIgnoreCase("/removeabove")) {
|
} else if (split[0].equalsIgnoreCase("/removeabove")) {
|
||||||
int size = split.length > 1 ? Integer.parseInt(split[1]) - 1 : 0;
|
int size = split.length > 1 ? Math.max(1, Integer.parseInt(split[1]) - 1) : 0;
|
||||||
|
|
||||||
int affected = 0;
|
int affected = 0;
|
||||||
int cx = (int)Math.floor(player.getX());
|
int cx = (int)Math.floor(player.getX());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren