Fix rounding error on partial negative coordinates (#1147)

This commit is contained in:
Adam 2020-12-11 12:18:03 -05:00 committed by GitHub
parent c014901b7a
commit d126b90ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -730,8 +730,8 @@ public class Claim
//not in the same world implies false
if (!Objects.equals(location.getWorld(), this.lesserBoundaryCorner.getWorld())) return false;
int x = (int) location.getX();
int z = (int) location.getZ();
int x = location.getBlockX();
int z = location.getBlockZ();
int y;
if (ignoreHeight) {
y = location.getBlockY();