mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Make EditSession#center (//center) set even y blocks.
At some point this was fixed for x and z but never for y...
This commit is contained in:
parent
6ab74dc7e5
commit
a1465c02ed
@ -1028,8 +1028,10 @@ public class EditSession implements Extent, AutoCloseable {
|
||||
Region centerRegion = new CuboidRegion(
|
||||
getWorld(), // Causes clamping of Y range
|
||||
BlockVector3.at(((int) center.getX()), ((int) center.getY()), ((int) center.getZ())),
|
||||
BlockVector3.at(MathUtils.roundHalfUp(center.getX()),
|
||||
center.getY(), MathUtils.roundHalfUp(center.getZ())));
|
||||
BlockVector3.at(
|
||||
MathUtils.roundHalfUp(center.getX()),
|
||||
MathUtils.roundHalfUp(center.getY()),
|
||||
MathUtils.roundHalfUp(center.getZ())));
|
||||
return setBlocks(centerRegion, pattern);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user