From 3045d5b42c2fe2082fdd34ccd1564cede6476863 Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Tue, 6 Mar 2012 10:17:48 +0100 Subject: [PATCH] armor config fix --- .../minecraft/limitedcreative/Configuration.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/de/jaschastarke/minecraft/limitedcreative/Configuration.java b/src/de/jaschastarke/minecraft/limitedcreative/Configuration.java index fed84c3..82fc054 100644 --- a/src/de/jaschastarke/minecraft/limitedcreative/Configuration.java +++ b/src/de/jaschastarke/minecraft/limitedcreative/Configuration.java @@ -272,9 +272,11 @@ public class Configuration { if (sect.getBoolean("enabled")) { Map armor = new HashMap(); for (Map.Entry 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; }