Skip to content

Commit

Permalink
Fixed 1 block offset in detection of protected island range (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Apr 29, 2022
1 parent 1c345c6 commit f14387c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ public void rshift(int shift) {
}

public boolean intercepts(int x, int z) {
return x >= this.minX && x < this.maxX && z >= this.minZ && z < this.maxZ;
return x >= this.minX && x <= this.maxX && z >= this.minZ && z <= this.maxZ;
}

public IslandArea copy() {
Expand Down

0 comments on commit f14387c

Please sign in to comment.