From dd924d806ba82ecb617c74aa40d67f344f301dfd Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 29 Jun 2014 17:47:29 -0700 Subject: [PATCH] Fixed RepeatingExtentPattern repeating a (1, 1, 1) smaller region. --- .../worldedit/function/pattern/RepeatingExtentPattern.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/function/pattern/RepeatingExtentPattern.java b/src/main/java/com/sk89q/worldedit/function/pattern/RepeatingExtentPattern.java index ae9d37221..024c674fa 100644 --- a/src/main/java/com/sk89q/worldedit/function/pattern/RepeatingExtentPattern.java +++ b/src/main/java/com/sk89q/worldedit/function/pattern/RepeatingExtentPattern.java @@ -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();