Some region selection fixes

- CuboidSelection no longer deals with IncompleteRegionExceptions
- Fixed Polygonal2DSelection not passing its region to the selector
- Fixed Polygonal2DRegion not cloning the list it receives in its constructor
- Gave PolygonalRegionSelector a new constructor where it takes a list of points
This commit is contained in:
TomyLobo
2012-01-01 14:08:22 +01:00
parent 3b87953da0
commit f2e26b07ec
4 changed files with 22 additions and 11 deletions

View File

@ -76,7 +76,7 @@ public class Polygonal2DRegion implements Region {
* @param maxY
*/
public Polygonal2DRegion(LocalWorld world, List<BlockVector2D> points, int minY, int maxY) {
this.points = points;
this.points = new ArrayList<BlockVector2D>(points);
this.minY = minY;
this.maxY = maxY;
hasY = true;