Mediocre Dynmap fix

This commit is contained in:
Magnus Ulf 2021-03-14 16:48:39 +01:00
parent 3700bfe1e9
commit 03c9270d29

View File

@ -246,12 +246,19 @@ public class EngineDynmap extends Engine
while (!allChunksSource.isEmpty()) while (!allChunksSource.isEmpty())
{ {
PS somePs = allChunksSource.iterator().next(); Iterator<PS> it = allChunksSource.iterator();
PS somePs = it.next();
it.remove();
// Create the polygon // Create the polygon
Set<PS> polygonChunks = new MassiveSet<>(); //Set<PS> polygonChunks = new MassiveSet<>();
floodFillTarget(allChunksSource, polygonChunks, somePs); //floodFillTarget(allChunksSource, polygonChunks, somePs);
List<PS> linelist = getLineList(polygonChunks); //List<PS> linelist = getLineList(polygonChunks);
List<PS> linelist = new MassiveList<>();
for (Direction d : Direction.values())
{
linelist.add(d.getCorner(somePs));
}
// Calc the x and y arrays // Calc the x and y arrays
int sz = linelist.size(); int sz = linelist.size();