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