mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-07 16:57:50 +01:00
Fixed NPE in migrateWorldConfigs()
This commit is contained in:
parent
9868c66cdb
commit
82cfbaba4e
@ -385,6 +385,10 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
|
||||
private void migrateWorldConfig() {
|
||||
FileConfiguration wconf = YamlConfiguration
|
||||
.loadConfiguration(new File(getDataFolder(), "worlds.yml"));
|
||||
|
||||
if (!wconf.isConfigurationSection("worlds")) // empty config
|
||||
return;
|
||||
|
||||
Map<String, Object> values = wconf.getConfigurationSection("worlds").getValues(false);
|
||||
|
||||
boolean wasChanged = false;
|
||||
|
Loading…
Reference in New Issue
Block a user