From 40233364aa89d4a5a91b27664ec117f8f1cd3cbd Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Fri, 26 Jul 2013 17:02:01 +0200 Subject: [PATCH] Fixed ItemStack as Creative-Armor --- .../minecraft/limitedcreative/inventories/ArmoryConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {