Merge pull request #310 from jmhertlein/master

Fixed ProtectedCuboidRegion::getPoints() returning points in wrong order

Fixes com.sk89q.worldguard.protection.regions.RegionIntersectTest.testIntersection.
This commit is contained in:
TomyLobo 2014-02-28 08:19:30 +01:00
commit 4dd13bd925

View File

@ -76,6 +76,7 @@ public void setMaximumPoint(BlockVector pt) {
setMinMaxPoints(min, pt);
}
@Override
public List<BlockVector2D> getPoints() {
List<BlockVector2D> pts = new ArrayList<BlockVector2D>();
int x1 = min.getBlockX();
@ -85,8 +86,8 @@ public List<BlockVector2D> getPoints() {
pts.add(new BlockVector2D(x1, z1));
pts.add(new BlockVector2D(x2, z1));
pts.add(new BlockVector2D(x1, z2));
pts.add(new BlockVector2D(x2, z2));
pts.add(new BlockVector2D(x1, z2));
return pts;
}