Fixed Possible config updrade NPE
This commit is contained in:
parent
3cc2d3999f
commit
54a0eb2224
2 changed files with 2 additions and 2 deletions
2
pom.xml
2
pom.xml
|
@ -96,7 +96,7 @@
|
|||
<!-- http://dl.bukkit.org/ -->
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>1.6.1-R0.1-SNAPSHOT</version>
|
||||
<version>1.6.2-R0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ public class ArmoryConfig extends Configuration implements IConfigurationSubGrou
|
|||
public void setValues(ConfigurationSection sect) {
|
||||
if (sect == null || sect.getValues(false).size() == 0) {
|
||||
ConfigurationSection parent_sect = mod.getConfig().getValues();
|
||||
if (parent_sect.contains("armor")) {
|
||||
if (parent_sect.contains("armore") && parent_sect.isConfigurationSection("armor")) {
|
||||
sect = parent_sect.createSection(this.getName(), parent_sect.getConfigurationSection("armor").getValues(true));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue