Fix rounding error on partial negative coordinates (#1147)
This commit is contained in:
parent
c014901b7a
commit
d126b90ce9
|
|
@ -730,8 +730,8 @@ public class Claim
|
||||||
//not in the same world implies false
|
//not in the same world implies false
|
||||||
if (!Objects.equals(location.getWorld(), this.lesserBoundaryCorner.getWorld())) return false;
|
if (!Objects.equals(location.getWorld(), this.lesserBoundaryCorner.getWorld())) return false;
|
||||||
|
|
||||||
int x = (int) location.getX();
|
int x = location.getBlockX();
|
||||||
int z = (int) location.getZ();
|
int z = location.getBlockZ();
|
||||||
int y;
|
int y;
|
||||||
if (ignoreHeight) {
|
if (ignoreHeight) {
|
||||||
y = location.getBlockY();
|
y = location.getBlockY();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user