Protect against stale markers during /dynmap reload
This commit is contained in:
parent
6a57dca463
commit
8d14097cea
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user