Changed ProtectedCuboidRegion to do its bounds check without Vector.

This commit is contained in:
sk89q 2011-01-08 16:35:15 -08:00
parent 345ac35649
commit 960dc2cd48

View File

@ -87,6 +87,11 @@ public void setMaximumPoint(BlockVector pt) {
@Override
public boolean contains(Vector pt) {
return pt.containedWithin(min, max);
int x = pt.getBlockX();
int y = pt.getBlockY();
int z = pt.getBlockZ();
return x >= min.getBlockX() && x <= max.getBlockX()
&& y >= min.getBlockY() && y <= max.getBlockY()
&& z >= min.getBlockZ() && z <= max.getBlockZ();
}
}