mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-10 17:57:37 +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
|
@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();
|
||||||
|
Loading…
Reference in New Issue
Block a user