mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-30 07:37:31 +02:00
55: Improved corner handling (Corners are now always inside a
PolygonalRegion)
This commit is contained in:
parent
423f0199d0
commit
cd599849b2
@ -96,6 +96,10 @@ public boolean contains(Vector pt) {
|
||||
for (i = 0; i < npoints; i++) {
|
||||
xNew = points.get(i).getBlockX();
|
||||
zNew = points.get(i).getBlockZ();
|
||||
//Check for corner
|
||||
if(xNew == targetX && zNew == targetZ){
|
||||
return true;
|
||||
}
|
||||
if (xNew > xOld) {
|
||||
x1 = xOld;
|
||||
x2 = xNew;
|
||||
|
Loading…
Reference in New Issue
Block a user