Fix item enchantments not resetting on tree load

This commit is contained in:
Justin Aquadro 2012-12-01 12:54:36 -05:00
parent 4827bb6f51
commit 1bd952a9e1
2 changed files with 4 additions and 2 deletions

View file

@ -30,8 +30,8 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.3.7.0")]
[assembly: AssemblyFileVersion("1.3.7.0")]
[assembly: AssemblyVersion("1.3.8.0")]
[assembly: AssemblyFileVersion("1.3.8.0")]
// This library is compatible with all CLS-compliant .NET programming languages.
[assembly: CLSCompliant(true)]

View file

@ -146,6 +146,8 @@ namespace Substrate
return null;
}
_enchantments.Clear();
_id = ctree["id"].ToTagShort();
_count = ctree["Count"].ToTagByte();
_damage = ctree["Damage"].ToTagShort();