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