Skip to content

Commit 267e37c

Browse files
committed
fix: adjust containment logic in CuboidDTO and update ParticleUtil for correct particle rendering
1 parent 22b6c05 commit 267e37c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/cn/lunadeer/dominion/api/dtos/CuboidDTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public boolean contain(CuboidDTO cuboid, boolean ignoreY) {
309309
* @return true if this cuboid contains the specified coordinates, false otherwise
310310
*/
311311
public boolean contain(int x, int y, int z) {
312-
return x1() <= x && x2() >= x && y1() <= y && y2() >= y && z1() <= z && z2() >= z;
312+
return x1() <= x && x2() > x && y1() <= y && y2() > y && z1() <= z && z2() > z;
313313
}
314314

315315
/**

0 commit comments

Comments
 (0)