Fixing bug in parsing item enchantments

This commit is contained in:
Justin Aquadro 2011-12-17 22:23:33 -05:00
parent ce3a3537d0
commit 31b739aa59

View file

@ -142,7 +142,7 @@ namespace Substrate
if (ctree.ContainsKey("tag")) {
TagNodeCompound tagtree = ctree["tag"].ToTagCompound();
if (tagtree.ContainsKey("ench")) {
TagNodeList enchList = ctree["ench"].ToTagList();
TagNodeList enchList = tagtree["ench"].ToTagList();
foreach (TagNode tag in enchList) {
_enchantments.Add(new Enchantment().LoadTree(tag));