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>();
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue