mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Removed /editcyl (not finished).
This commit is contained in:
parent
532c4de8cc
commit
633be176eb
@ -72,7 +72,6 @@ public class WorldEdit extends Plugin {
|
|||||||
commands.put("/editload", "[Filename] - Load .schematic into clipboard");
|
commands.put("/editload", "[Filename] - Load .schematic into clipboard");
|
||||||
commands.put("/editsave", "[Filename] - Save clipboard to .schematic");
|
commands.put("/editsave", "[Filename] - Save clipboard to .schematic");
|
||||||
commands.put("/editfill", "[ID] [Radius] <Depth> - Fill a hole");
|
commands.put("/editfill", "[ID] [Radius] <Depth> - Fill a hole");
|
||||||
commands.put("/editcyl", "[ID] [Radius] <Height> - Create cylinder");
|
|
||||||
commands.put("/editscript", "[Filename] <Args...> - Run a WorldEdit script");
|
commands.put("/editscript", "[Filename] <Args...> - Run a WorldEdit script");
|
||||||
commands.put("/editlimit", "[Num] - See documentation");
|
commands.put("/editlimit", "[Num] - See documentation");
|
||||||
}
|
}
|
||||||
@ -514,11 +513,11 @@ public class WorldEdit extends Plugin {
|
|||||||
|
|
||||||
int affected = 0;
|
int affected = 0;
|
||||||
|
|
||||||
for (int x = 0; x <= radius; x++) {
|
for (int x = -radius; x <= radius; x++) {
|
||||||
int z = (int)(Math.sqrt(radius - x * x) + 0.5);
|
int z = (int)(Math.sqrt(radius - x * x) + 0.5);
|
||||||
for (int y = cy; y <= maxY; y++) {
|
for (int y = cy; y <= maxY; y++) {
|
||||||
for (int x2 = cx - x; x2 <= cx + x; x2++) {
|
for (int z2 = cz - z; z2 <= cz + z; z2++) {
|
||||||
editSession.setBlock(x2, y, cz + z, blockType);
|
editSession.setBlock(x + cx, y, z2, blockType);
|
||||||
affected++;
|
affected++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user