Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-10 05:20:04 +01:00
Fixed the unused Polygonal2DSelection(List, int, int) constructor.
Dieser Commit ist enthalten in:
Ursprung
13f36757c2
Commit
1194f4448e
@ -41,19 +41,8 @@ public class Polygonal2DSelection extends RegionSelection {
|
|||||||
maxY = Math.min(Math.max(0, maxY), 127);
|
maxY = Math.min(Math.max(0, maxY), 127);
|
||||||
|
|
||||||
Polygonal2DRegionSelector sel = new Polygonal2DRegionSelector();
|
Polygonal2DRegionSelector sel = new Polygonal2DRegionSelector();
|
||||||
poly2d = sel.getIncompleteRegion();
|
poly2d = new Polygonal2DRegion(points, minY, maxY);
|
||||||
|
|
||||||
for (BlockVector2D pt : points) {
|
|
||||||
if (pt == null) {
|
|
||||||
throw new IllegalArgumentException("Null point not permitted");
|
|
||||||
}
|
|
||||||
|
|
||||||
poly2d.addPoint(pt);
|
|
||||||
}
|
|
||||||
|
|
||||||
poly2d.setMinimumY(minY);
|
|
||||||
poly2d.setMaximumY(maxY);
|
|
||||||
|
|
||||||
sel.learnChanges();
|
sel.learnChanges();
|
||||||
|
|
||||||
setRegionSelector(sel);
|
setRegionSelector(sel);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren