Fixed RepeatingExtentPattern repeating a (1, 1, 1) smaller region.

This commit is contained in:
sk89q 2014-06-29 17:47:29 -07:00
parent 09eb36dc5e
commit dd924d806b

View File

@ -85,7 +85,7 @@ public class RepeatingExtentPattern extends AbstractPattern {
@Override
public BaseBlock apply(Vector position) {
Vector base = position.add(offset);
Vector size = extent.getMaximumPoint().subtract(extent.getMinimumPoint());
Vector size = extent.getMaximumPoint().subtract(extent.getMinimumPoint()).add(1, 1, 1);
int x = base.getBlockX() % size.getBlockX();
int y = base.getBlockY() % size.getBlockY();
int z = base.getBlockZ() % size.getBlockZ();