mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-27 07:11:04 -04:00
Turns out MySQL uses NULL instead of an empty string for the default empty value for totalCuboided column.
This commit is contained in:
parent
f484469b3f
commit
b297191501
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user