From 57b5c5b546ccfaf9df6d3ce908985867ffb778be Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Sun, 7 Aug 2011 05:20:50 +0200 Subject: [PATCH] Added support for non-integer radius to //cyl, //hcyl, //sphere and //hsphere --- .../com/sk89q/worldedit/commands/GenerationCommands.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/commands/GenerationCommands.java b/src/main/java/com/sk89q/worldedit/commands/GenerationCommands.java index 2284c8d11..89043420e 100644 --- a/src/main/java/com/sk89q/worldedit/commands/GenerationCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/GenerationCommands.java @@ -45,7 +45,7 @@ public class GenerationCommands { throws WorldEditException { Pattern block = we.getBlockPattern(player, args.getString(0)); - int radius = Math.max(1, args.getInteger(1)); + double radius = Math.max(1, args.getDouble(1)); int height = args.argsLength() > 2 ? args.getInteger(2) : 1; Vector pos = session.getPlacementPosition(player); @@ -66,7 +66,7 @@ public class GenerationCommands { throws WorldEditException { Pattern block = we.getBlockPattern(player, args.getString(0)); - int radius = Math.max(1, args.getInteger(1)); + double radius = Math.max(1, args.getDouble(1)); int height = args.argsLength() > 2 ? args.getInteger(2) : 1; Vector pos = session.getPlacementPosition(player); @@ -87,7 +87,7 @@ public class GenerationCommands { throws WorldEditException { Pattern block = we.getBlockPattern(player, args.getString(0)); - int radius = Math.max(1, args.getInteger(1)); + double radius = Math.max(1, args.getDouble(1)); boolean raised = args.argsLength() > 2 ? (args.getString(2).equalsIgnoreCase("true") || args.getString(2).equalsIgnoreCase("yes")) @@ -116,7 +116,7 @@ public class GenerationCommands { throws WorldEditException { Pattern block = we.getBlockPattern(player, args.getString(0)); - int radius = Math.max(1, args.getInteger(1)); + double radius = Math.max(1, args.getDouble(1)); boolean raised = args.argsLength() > 2 ? (args.getString(2).equalsIgnoreCase("true") || args.getString(2).equalsIgnoreCase("yes"))