From 1194f4448e7d26dfed843960ab5666bd5fdefc46 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Sat, 19 Nov 2011 15:09:28 +0100 Subject: [PATCH] Fixed the unused Polygonal2DSelection(List, int, int) constructor. --- .../bukkit/selections/Polygonal2DSelection.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/bukkit/selections/Polygonal2DSelection.java b/src/main/java/com/sk89q/worldedit/bukkit/selections/Polygonal2DSelection.java index 3d73316d3..0fd3ab260 100644 --- a/src/main/java/com/sk89q/worldedit/bukkit/selections/Polygonal2DSelection.java +++ b/src/main/java/com/sk89q/worldedit/bukkit/selections/Polygonal2DSelection.java @@ -41,19 +41,8 @@ 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(); setRegionSelector(sel);