mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-20 06:12:38 +01:00
Changed ProtectedCuboidRegion to do its bounds check without Vector.
This commit is contained in:
parent
345ac35649
commit
960dc2cd48
@ -87,6 +87,11 @@ public void setMaximumPoint(BlockVector pt) {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(Vector pt) {
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user