1.0.7 update :)
This commit is contained in:
@@ -67,7 +67,7 @@ public class OmegaConfig {
|
||||
// 1. serialize to disk if the config does not already exist
|
||||
// 2. read from disk if it does exist
|
||||
if (!configExists(config)) {
|
||||
writeConfig(configClass, config);
|
||||
config.save();
|
||||
REGISTERED_CONFIGURATIONS.add(config);
|
||||
} else {
|
||||
try {
|
||||
@@ -79,7 +79,7 @@ public class OmegaConfig {
|
||||
T object = GSON.fromJson(res.toString(), configClass);
|
||||
|
||||
// re-write the config to add new values
|
||||
writeConfig(configClass, object);
|
||||
object.save();
|
||||
REGISTERED_CONFIGURATIONS.add(object);
|
||||
return object;
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "omega-config",
|
||||
"version": "${version}",
|
||||
"version": "1.0.7",
|
||||
"name": "OmegaConfig",
|
||||
"description": "The last config solution you will ever use.",
|
||||
"authors": [
|
||||
"Draylar"
|
||||
"Draylar",
|
||||
"Frqnny"
|
||||
],
|
||||
"contact": {},
|
||||
"license": "MIT",
|
||||
|
||||
Reference in New Issue
Block a user