From 55790601d324ea7a802d48a78454f440af61cff8 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 24 Aug 2017 20:46:25 +1000 Subject: [PATCH] Fix cyl radius check --- .../java/com/sk89q/worldedit/command/GenerationCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java b/core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java index 3fa0030d..5a332b96 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java @@ -186,7 +186,7 @@ public class GenerationCommands extends MethodCommands { @Logging(PLACEMENT) public void hcyl(FawePlayer fp, Player player, LocalSession session, EditSession editSession, Pattern pattern, Vector2D radius, @Optional("1") int height, @Range(min = 1) @Optional("1") int thickness, CommandContext context) throws WorldEditException, ParameterException { double max = MathMan.max(radius.getBlockX(), radius.getBlockZ()); - worldEdit.checkMaxBrushRadius(max); + worldEdit.checkMaxRadius(max); fp.checkConfirmationRadius(getArguments(context), (int) max); height = Math.min(256, height); Vector pos = session.getPlacementPosition(player);