Fixed RepeatingExtentPattern repeating a (1, 1, 1) smaller region.
This commit is contained in:
@@ -85,7 +85,7 @@ public class RepeatingExtentPattern extends AbstractPattern {
|
|||||||
@Override
|
@Override
|
||||||
public BaseBlock apply(Vector position) {
|
public BaseBlock apply(Vector position) {
|
||||||
Vector base = position.add(offset);
|
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 x = base.getBlockX() % size.getBlockX();
|
||||||
int y = base.getBlockY() % size.getBlockY();
|
int y = base.getBlockY() % size.getBlockY();
|
||||||
int z = base.getBlockZ() % size.getBlockZ();
|
int z = base.getBlockZ() % size.getBlockZ();
|
||||||
|
|||||||
Reference in New Issue
Block a user