armor config fix
This commit is contained in:
parent
47cd386627
commit
3045d5b42c
1 changed files with 5 additions and 3 deletions
|
@ -272,9 +272,11 @@ public class Configuration {
|
|||
if (sect.getBoolean("enabled")) {
|
||||
Map<String, MaterialData> armor = new HashMap<String, MaterialData>();
|
||||
for (Map.Entry<String, Object> entry : sect.getValues(false).entrySet()) {
|
||||
MaterialData md = parseMaterial((String) entry.getValue());
|
||||
if (md != null)
|
||||
armor.put(entry.getKey(), md);
|
||||
if (!entry.getKey().equals("enabled")) {
|
||||
MaterialData md = parseMaterial((String) entry.getValue());
|
||||
if (md != null)
|
||||
armor.put(entry.getKey(), md);
|
||||
}
|
||||
}
|
||||
return armor;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue