Database config was null and not loading properly
This commit is contained in:
parent
fe383b2973
commit
09426dc0b4
2 changed files with 9 additions and 1 deletions
|
@ -53,7 +53,7 @@ mod_name=Zontreck's Library Mod
|
||||||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=GPLv3
|
mod_license=GPLv3
|
||||||
# The mod version. See https://semver.org/
|
# The mod version. See https://semver.org/
|
||||||
mod_version=1201.13.042324.2223
|
mod_version=1201.13.042324.2239
|
||||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||||
# This should match the base package used for the mod sources.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|
|
@ -49,12 +49,20 @@ public class DatabaseSection
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:{
|
default:{
|
||||||
|
|
||||||
|
user = tag.getString(TAG_USER);
|
||||||
|
password = tag.getString(TAG_PASSWORD);
|
||||||
|
host = tag.getString(TAG_HOST);
|
||||||
|
database = tag.getString(TAG_DATABASE);
|
||||||
|
version = ver;
|
||||||
|
|
||||||
if(migrated)
|
if(migrated)
|
||||||
{
|
{
|
||||||
ServerConfig.commit();
|
ServerConfig.commit();
|
||||||
migrated=false;
|
migrated=false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue