diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/inventories/ArmoryConfig.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/inventories/ArmoryConfig.java index 2553513..d9d9928 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/inventories/ArmoryConfig.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/inventories/ArmoryConfig.java @@ -64,8 +64,8 @@ public class ArmoryConfig extends Configuration implements IConfigurationSubGrou Map armor = new HashMap(); for (Map.Entry entry : config.getValues(false).entrySet()) { if (!entry.getKey().equals("enabled")) { - if (entry instanceof ItemStack) { - armor.put(entry.getKey(), (ItemStack) entry); + if (entry.getValue() instanceof ItemStack) { + armor.put(entry.getKey(), (ItemStack) entry.getValue()); } else { MaterialData md = null; try {