Skip to content

Commit

Permalink
Check radius instead of diameter for clipboard brush.
Browse files Browse the repository at this point in the history
This brings it more in line with other brushes in terms of allowable size.
  • Loading branch information
wizjany committed Feb 25, 2019
1 parent 5de8e08 commit 2f734d4
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -146,9 +146,9 @@ public void clipboardBrush(Player player, LocalSession session, EditSession edit

BlockVector3 size = clipboard.getDimensions();

worldEdit.checkMaxBrushRadius(size.getBlockX());
worldEdit.checkMaxBrushRadius(size.getBlockY());
worldEdit.checkMaxBrushRadius(size.getBlockZ());
worldEdit.checkMaxBrushRadius(size.getBlockX() / 2D - 1);
worldEdit.checkMaxBrushRadius(size.getBlockY() / 2D - 1);
worldEdit.checkMaxBrushRadius(size.getBlockZ() / 2D - 1);

BrushTool tool = session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType());
tool.setBrush(new ClipboardBrush(holder, ignoreAir, usingOrigin), "worldedit.brush.clipboard");
Expand Down

0 comments on commit 2f734d4

Please sign in to comment.