Protect against stale markers during /dynmap reload

This commit is contained in:
Mike Primm 2013-01-20 22:02:44 -06:00
parent 6a57dca463
commit 8d14097cea

View File

@ -701,6 +701,10 @@ public class DynmapFactionsPlugin extends JavaPlugin {
severe("Error creating marker set"); severe("Error creating marker set");
return; return;
} }
/* Make sure these are empty (on reload) */
resareas.clear();
resmark.clear();
int minzoom = cfg.getInt("layer.minzoom", 0); int minzoom = cfg.getInt("layer.minzoom", 0);
if(minzoom > 0) if(minzoom > 0)
set.setMinZoom(minzoom); set.setMinZoom(minzoom);