From 31b739aa59e702bc8e4cb61fa70bb1894d5b17b1 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Sat, 17 Dec 2011 22:23:33 -0500 Subject: [PATCH] Fixing bug in parsing item enchantments --- SubstrateCS/Source/Item.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SubstrateCS/Source/Item.cs b/SubstrateCS/Source/Item.cs index fbd462b..e63ddbd 100644 --- a/SubstrateCS/Source/Item.cs +++ b/SubstrateCS/Source/Item.cs @@ -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));