mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-12-01 06:53:26 +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");
|
ConfigurationSection overrideSection = config.getConfigurationSection("overrideValues");
|
||||||
if (overrideSection != null) {
|
if (overrideSection != null) {
|
||||||
overrideValues = new WorldConfig(plugin, overrideSection);
|
overrideValues = new WorldConfig(plugin, overrideSection);
|
||||||
|
} else {
|
||||||
|
overrideValues = new WorldConfig(plugin);
|
||||||
}
|
}
|
||||||
ConfigurationSection defaultSection = config.getConfigurationSection("defaultValues");
|
ConfigurationSection defaultSection = config.getConfigurationSection("defaultValues");
|
||||||
if (defaultValues != null) {
|
if (defaultValues != null) {
|
||||||
defaultValues = new WorldConfig(plugin, defaultSection);
|
defaultValues = new WorldConfig(plugin, defaultSection);
|
||||||
|
} else {
|
||||||
|
defaultValues = new WorldConfig(plugin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user