Fixed ItemStack as Creative-Armor

This commit is contained in:
Jascha Starke 2013-07-26 17:02:01 +02:00
parent 52dea4a793
commit 40233364aa

View file

@ -64,8 +64,8 @@ public class ArmoryConfig extends Configuration implements IConfigurationSubGrou
Map<String, ItemStack> armor = new HashMap<String, ItemStack>(); Map<String, ItemStack> armor = new HashMap<String, ItemStack>();
for (Map.Entry<String, Object> entry : config.getValues(false).entrySet()) { for (Map.Entry<String, Object> entry : config.getValues(false).entrySet()) {
if (!entry.getKey().equals("enabled")) { if (!entry.getKey().equals("enabled")) {
if (entry instanceof ItemStack) { if (entry.getValue() instanceof ItemStack) {
armor.put(entry.getKey(), (ItemStack) entry); armor.put(entry.getKey(), (ItemStack) entry.getValue());
} else { } else {
MaterialData md = null; MaterialData md = null;
try { try {