Skip to content

Commit e2af5b4

Browse files
authored
Fix WallMakeMask for regions not overriding contains(x, z) (#3349)
1 parent 2713c8e commit e2af5b4

File tree

1 file changed

+5
-4
lines changed
  • worldedit-core/src/main/java/com/fastasyncworldedit/core/function/mask

1 file changed

+5
-4
lines changed

worldedit-core/src/main/java/com/fastasyncworldedit/core/function/mask/WallMakeMask.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ public WallMakeMask(Region region) {
1515
@Override
1616
public boolean test(BlockVector3 position) {
1717
int x = position.x();
18+
int y = position.y();
1819
int z = position.z();
19-
return !region.contains(x, z + 1) || !region.contains(x, z - 1) || !region.contains(x + 1, z) || !region.contains(
20-
x - 1,
21-
z
22-
);
20+
return !region.contains(x, y, z + 1) ||
21+
!region.contains(x, y, z - 1) ||
22+
!region.contains(x + 1, y, z) ||
23+
!region.contains(x - 1, y, z);
2324
}
2425

2526
@Override

0 commit comments

Comments
 (0)