mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 11:13:45 +01:00 
			
		
		
		
	Fix another legacy converter NPE
This commit is contained in:
		@@ -113,12 +113,14 @@ import java.util.Map;
 | 
				
			|||||||
        for (final String world : worlds) {
 | 
					        for (final String world : worlds) {
 | 
				
			||||||
            final ConfigurationSection worldSection = configuration.getConfigurationSection(world);
 | 
					            final ConfigurationSection worldSection = configuration.getConfigurationSection(world);
 | 
				
			||||||
            for (final Map.Entry<String, ConfigurationType> entry : TYPE_MAP.entrySet()) {
 | 
					            for (final Map.Entry<String, ConfigurationType> entry : TYPE_MAP.entrySet()) {
 | 
				
			||||||
                if (entry.getValue() == ConfigurationType.BLOCK) {
 | 
					                if (worldSection.contains(entry.getKey())) {
 | 
				
			||||||
                    this.convertBlock(worldSection, entry.getKey(),
 | 
					                    if (entry.getValue() == ConfigurationType.BLOCK) {
 | 
				
			||||||
                        worldSection.getString(entry.getKey()));
 | 
					                        this.convertBlock(worldSection, entry.getKey(),
 | 
				
			||||||
                } else {
 | 
					                                worldSection.getString(entry.getKey()));
 | 
				
			||||||
                    this.convertBlockList(worldSection, entry.getKey(),
 | 
					                    } else {
 | 
				
			||||||
                        worldSection.getStringList(entry.getKey()));
 | 
					                        this.convertBlockList(worldSection, entry.getKey(),
 | 
				
			||||||
 | 
					                                worldSection.getStringList(entry.getKey()));
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user