1.0.7 update :)

This commit is contained in:
ffrann
2021-06-11 12:08:11 -04:00
parent f468546eea
commit b6b7a67866
4 changed files with 11 additions and 11 deletions
@@ -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",