Merge pull request #108 from Moo0/derp

Bug in ProtectedCuboidRegion/getIntersectingRegions.
This commit is contained in:
MonsieurApple 2011-05-23 13:55:05 -07:00
commit 7f8ad468ca

View File

@ -167,7 +167,7 @@ public List<ProtectedRegion> getIntersectingRegions(List<ProtectedRegion> region
// Check whether the other regions points are inside the current region
if (region instanceof ProtectedPolygonalRegion) {
for (i2 = 0; i < ((ProtectedPolygonalRegion)region).getPoints().size(); i++) {
for (i2 = 0; i2 < ((ProtectedPolygonalRegion)region).getPoints().size(); i2++) {
BlockVector2D pt2Dr = ((ProtectedPolygonalRegion)region).getPoints().get(i2);
int minYr = ((ProtectedPolygonalRegion)region).minY;
int maxYr = ((ProtectedPolygonalRegion)region).maxY;