Turns out MySQL uses NULL instead of an empty string for the default empty value for totalCuboided column.

This commit is contained in:
UnknownShadow200 2016-08-02 12:46:46 +10:00
parent f484469b3f
commit b297191501

View File

@ -110,11 +110,11 @@ namespace MCGalaxy {
static long ParseLong(string value) {
return value == "" ? 0 : long.Parse(value);
return (value == "" || value.CaselessEq("null")) ? 0 : long.Parse(value);
}
static int ParseInt(string value) {
return value == "" ? 0 : int.Parse(value);
return (value == "" || value.CaselessEq("null")) ? 0 : int.Parse(value);
}
static string ParseColor(object value) {