Skip to content

Commit

Permalink
Expand boundingbox by 1 to properly contain all blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
T14D3 committed Jan 19, 2025
1 parent bf9db6c commit 16071bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/de/t14d3/zones/Region.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ void setKey(String key, RegionManager regionManager) {

public boolean contains(Location location) {
BoundingBox box = BoundingBox.of(min, max);
box.expand(1); // Expand by 1 to encompass the full block
return box.contains(location.toVector());
}

Expand Down

0 comments on commit 16071bf

Please sign in to comment.