mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-24 18:19:03 +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
|
||||
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