mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-04 20:06:06 +00:00
Fixed RepeatingExtentPattern repeating a (1, 1, 1) smaller region.
This commit is contained in:
parent
09eb36dc5e
commit
dd924d806b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user