mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-30 22:44:24 +01:00
Fix MFD NPE
This commit is contained in:
parent
0be71908e7
commit
539d3da8a9
@ -131,10 +131,14 @@ public class DungeonConfig extends DREConfig {
|
||||
ConfigurationSection overrideSection = config.getConfigurationSection("overrideValues");
|
||||
if (overrideSection != null) {
|
||||
overrideValues = new WorldConfig(plugin, overrideSection);
|
||||
} else {
|
||||
overrideValues = new WorldConfig(plugin);
|
||||
}
|
||||
ConfigurationSection defaultSection = config.getConfigurationSection("defaultValues");
|
||||
if (defaultValues != null) {
|
||||
defaultValues = new WorldConfig(plugin, defaultSection);
|
||||
} else {
|
||||
defaultValues = new WorldConfig(plugin);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user