You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IPolygonalSelection points order are changed when your using Set
So change
return new IPolygonalSelection() { @OverRide
public Set getPoints() {
return ((Polygonal2DRegion) selection).getPoints().stream()
.map(BlockVector2::toBlockVector3)
.map(vector -> BukkitAdapter.adapt(world, vector))
.collect(Collectors.toSet());
}
to
return new IPolygonalSelection() { @OverRide
public List getPoints() {
return ((Polygonal2DRegion) selection).getPoints().stream()
.map(BlockVector2::toBlockVector3)
.map(vector -> BukkitAdapter.adapt(world, vector))
.collect(Collectors.toList());
}
to guaranteed order of list.
The text was updated successfully, but these errors were encountered:
recorehosting
changed the title
IPolygonalSelection points re not in the correct order
IPolygonalSelection points are not in the correct order
Sep 28, 2023
IPolygonalSelection points order are changed when your using Set
So change
return new IPolygonalSelection() {
@OverRide
public Set getPoints() {
return ((Polygonal2DRegion) selection).getPoints().stream()
.map(BlockVector2::toBlockVector3)
.map(vector -> BukkitAdapter.adapt(world, vector))
.collect(Collectors.toSet());
}
to
return new IPolygonalSelection() {
@OverRide
public List getPoints() {
return ((Polygonal2DRegion) selection).getPoints().stream()
.map(BlockVector2::toBlockVector3)
.map(vector -> BukkitAdapter.adapt(world, vector))
.collect(Collectors.toList());
}
to guaranteed order of list.
The text was updated successfully, but these errors were encountered: