Fixed ItemStack as Creative-Armor
This commit is contained in:
parent
52dea4a793
commit
40233364aa
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ public class ArmoryConfig extends Configuration implements IConfigurationSubGrou
|
|||
Map<String, ItemStack> armor = new HashMap<String, ItemStack>();
|
||||
for (Map.Entry<String, Object> 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 {
|
||||
|
|
Loading…
Reference in a new issue