Fix cyl radius check

This commit is contained in:
Jesse Boyd 2017-08-24 20:46:25 +10:00
parent 3c4a709efc
commit 55790601d3
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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);