From 8d14097cead997fad878b19caff1da2ea5e62ee5 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sun, 20 Jan 2013 22:02:44 -0600 Subject: [PATCH] Protect against stale markers during /dynmap reload --- src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java b/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java index 632320a..76e36b8 100644 --- a/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java +++ b/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java @@ -701,6 +701,10 @@ public class DynmapFactionsPlugin extends JavaPlugin { severe("Error creating marker set"); return; } + /* Make sure these are empty (on reload) */ + resareas.clear(); + resmark.clear(); + int minzoom = cfg.getInt("layer.minzoom", 0); if(minzoom > 0) set.setMinZoom(minzoom);