Fix cyl radius check
This commit is contained in:
parent
3c4a709efc
commit
55790601d3
@ -186,7 +186,7 @@ public class GenerationCommands extends MethodCommands {
|
|||||||
@Logging(PLACEMENT)
|
@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 {
|
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());
|
double max = MathMan.max(radius.getBlockX(), radius.getBlockZ());
|
||||||
worldEdit.checkMaxBrushRadius(max);
|
worldEdit.checkMaxRadius(max);
|
||||||
fp.checkConfirmationRadius(getArguments(context), (int) max);
|
fp.checkConfirmationRadius(getArguments(context), (int) max);
|
||||||
height = Math.min(256, height);
|
height = Math.min(256, height);
|
||||||
Vector pos = session.getPlacementPosition(player);
|
Vector pos = session.getPlacementPosition(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user