Skip to content
Browse files

Make EditSession#center (//center) set even y blocks.

At some point this was fixed for x and z but never for y...
  • Loading branch information...
wizjany committed Aug 6, 2019
1 parent 6ab74dc commit a1465c02ed56d6870afbb1d09eff0bd92041b58c
Showing with 4 additions and 2 deletions.
  1. +4 −2 worldedit-core/src/main/java/com/sk89q/worldedit/
@@ -1028,8 +1028,10 @@ public int center(Region region, Pattern pattern) throws MaxChangedBlocksExcepti
Region centerRegion = new CuboidRegion(
getWorld(), // Causes clamping of Y range center.getX()), ((int) center.getY()), ((int) center.getZ())),,
center.getY(), MathUtils.roundHalfUp(center.getZ())));
return setBlocks(centerRegion, pattern);

0 comments on commit a1465c0

Please sign in to comment.
You can’t perform that action at this time.