diff --git a/TShockAPI/DB/DbExt.cs b/TShockAPI/DB/DbExt.cs index a280b1a5..3ba4f464 100644 --- a/TShockAPI/DB/DbExt.cs +++ b/TShockAPI/DB/DbExt.cs @@ -26,13 +26,13 @@ namespace TShockAPI.DB {typeof(Int64), (s, i) => s.GetInt64(i)}, {typeof(string), (s, i) => s.GetString(i)}, {typeof(decimal), (s, i) => s.GetDecimal(i)}, - {typeof(decimal), (s, i) => s.GetFloat(i)}, + {typeof(float), (s, i) => s.GetFloat(i)}, {typeof(double), (s, i) => s.GetDouble(i)}, }; public static T Get(this IDataReader reader, string column) { - return reader.Get(column); + return reader.Get(reader.GetOrdinal(column)); } public static T Get(this IDataReader reader, int column) { diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index 01929bb3..1159a2a7 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using System.Runtime.InteropServices; // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.3.2.0705")] -[assembly: AssemblyFileVersion("2.3.2.0705")] +[assembly: AssemblyVersion("2.3.2.0708")] +[assembly: AssemblyFileVersion("2.3.2.0708")]