Merge pull request #364 from mickare/patch-1

Fix region contain method
This commit is contained in:
Matthew Miller 2018-08-18 20:33:53 +10:00 committed by GitHub
commit dc39300af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,9 +324,9 @@ public class CuboidRegion extends AbstractRegion implements FlatRegion {
@Override @Override
public boolean contains(Vector position) { public boolean contains(Vector position) {
double x = position.getX(); int x = position.getBlockX();
double y = position.getY(); int y = position.getBlockY();
double z = position.getZ(); int z = position.getBlockZ();
Vector min = getMinimumPoint(); Vector min = getMinimumPoint();
Vector max = getMaximumPoint(); Vector max = getMaximumPoint();