9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-28 11:19:08 +00:00

make the ConfigurationArea contains inclusive

This commit is contained in:
Samsuik
2025-10-29 21:11:52 +00:00
parent 43ccdfc0b8
commit 1829714575

View File

@@ -24,9 +24,9 @@ public record ConfigurationArea(int minX, int minY, int minZ, int maxX, int maxY
}
public boolean contains(final int x, final int y, final int z) {
return x >= this.minX && x < this.maxX
&& y >= this.minY && y < this.maxY
&& z >= this.minZ && z < this.maxZ;
return x >= this.minX && x <= this.maxX
&& y >= this.minY && y <= this.maxY
&& z >= this.minZ && z <= this.maxZ;
}
public long volume() {