From 633be176ebf51d76af618a7abb9f297442850ede Mon Sep 17 00:00:00 2001 From: sk89q Date: Tue, 5 Oct 2010 21:52:47 -0700 Subject: [PATCH] Removed /editcyl (not finished). --- src/WorldEdit.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/WorldEdit.java b/src/WorldEdit.java index 3cc78ac79..006a11246 100644 --- a/src/WorldEdit.java +++ b/src/WorldEdit.java @@ -72,7 +72,6 @@ public class WorldEdit extends Plugin { commands.put("/editload", "[Filename] - Load .schematic into clipboard"); commands.put("/editsave", "[Filename] - Save clipboard to .schematic"); commands.put("/editfill", "[ID] [Radius] - Fill a hole"); - commands.put("/editcyl", "[ID] [Radius] - Create cylinder"); commands.put("/editscript", "[Filename] - Run a WorldEdit script"); commands.put("/editlimit", "[Num] - See documentation"); } @@ -514,11 +513,11 @@ public class WorldEdit extends Plugin { 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); for (int y = cy; y <= maxY; y++) { - for (int x2 = cx - x; x2 <= cx + x; x2++) { - editSession.setBlock(x2, y, cz + z, blockType); + for (int z2 = cz - z; z2 <= cz + z; z2++) { + editSession.setBlock(x + cx, y, z2, blockType); affected++; } }