mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-20 02:45:00 +00:00
Fixed the unused Polygonal2DSelection(List, int, int) constructor.
This commit is contained in:
parent
13f36757c2
commit
1194f4448e
@ -41,18 +41,7 @@ public class Polygonal2DSelection extends RegionSelection {
|
||||
maxY = Math.min(Math.max(0, maxY), 127);
|
||||
|
||||
Polygonal2DRegionSelector sel = new Polygonal2DRegionSelector();
|
||||
poly2d = sel.getIncompleteRegion();
|
||||
|
||||
for (BlockVector2D pt : points) {
|
||||
if (pt == null) {
|
||||
throw new IllegalArgumentException("Null point not permitted");
|
||||
}
|
||||
|
||||
poly2d.addPoint(pt);
|
||||
}
|
||||
|
||||
poly2d.setMinimumY(minY);
|
||||
poly2d.setMaximumY(maxY);
|
||||
poly2d = new Polygonal2DRegion(points, minY, maxY);
|
||||
|
||||
sel.learnChanges();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user