Fixed heal/damage regions being shifted by half a block towards northeast.

This commit is contained in:
TomyLobo 2011-08-15 10:00:49 +02:00
parent 5acd3a7f6c
commit e2fc6a3ff0

View File

@ -98,12 +98,12 @@ public void setMaximumPoint(BlockVector pt) {
*/ */
@Override @Override
public boolean contains(Vector pt) { public boolean contains(Vector pt) {
int x = pt.getBlockX(); final double x = pt.getX();
int y = pt.getBlockY(); final double y = pt.getY();
int z = pt.getBlockZ(); final double z = pt.getZ();
return x >= min.getBlockX() && x <= max.getBlockX() return x >= min.getBlockX() && x < max.getBlockX()+1
&& y >= min.getBlockY() && y <= max.getBlockY() && y >= min.getBlockY() && y < max.getBlockY()+1
&& z >= min.getBlockZ() && z <= max.getBlockZ(); && z >= min.getBlockZ() && z < max.getBlockZ()+1;
} }