armor config fix

This commit is contained in:
Jascha Starke 2012-03-06 10:17:48 +01:00
parent 47cd386627
commit 3045d5b42c

View file

@ -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;
}