mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-24 11:36:11 +01:00
Fixed heal/damage regions being shifted by half a block towards northeast.
This commit is contained in:
parent
5acd3a7f6c
commit
e2fc6a3ff0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user