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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user