From 03c9270d2952dca4b9d46af148dcc970ade4c503 Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Sun, 14 Mar 2021 16:48:39 +0100 Subject: [PATCH] Mediocre Dynmap fix --- .../factions/integration/dynmap/EngineDynmap.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/com/massivecraft/factions/integration/dynmap/EngineDynmap.java b/src/com/massivecraft/factions/integration/dynmap/EngineDynmap.java index 47e41f5c..0b2e8538 100644 --- a/src/com/massivecraft/factions/integration/dynmap/EngineDynmap.java +++ b/src/com/massivecraft/factions/integration/dynmap/EngineDynmap.java @@ -246,12 +246,19 @@ public class EngineDynmap extends Engine while (!allChunksSource.isEmpty()) { - PS somePs = allChunksSource.iterator().next(); + Iterator it = allChunksSource.iterator(); + PS somePs = it.next(); + it.remove(); // Create the polygon - Set polygonChunks = new MassiveSet<>(); - floodFillTarget(allChunksSource, polygonChunks, somePs); - List linelist = getLineList(polygonChunks); + //Set polygonChunks = new MassiveSet<>(); + //floodFillTarget(allChunksSource, polygonChunks, somePs); + //List linelist = getLineList(polygonChunks); + List linelist = new MassiveList<>(); + for (Direction d : Direction.values()) + { + linelist.add(d.getCorner(somePs)); + } // Calc the x and y arrays int sz = linelist.size();