1.0.7 update :)
This commit is contained in:
@@ -5,7 +5,6 @@ import java.nio.charset.StandardCharsets
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
google()
|
||||
}
|
||||
|
||||
|
||||
+6
-6
@@ -2,13 +2,13 @@
|
||||
org.gradle.jvmargs=-Xmx1G
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=21w20a
|
||||
yarn_mappings=21w20a+build.19
|
||||
minecraft_version=1.17
|
||||
yarn_mappings=1.17+build.7
|
||||
loader_version=0.11.3
|
||||
|
||||
#Fabric api
|
||||
fabric_version=0.34.10+1.17
|
||||
# Mod Properties
|
||||
mod_version=1.0.5
|
||||
mod_version=1.0.7
|
||||
maven_group=draylar
|
||||
archives_base_name=omega-config
|
||||
# Dependencies
|
||||
# check this on https://modmuss50.me/fabric.html
|
||||
fabric_version=0.34.6+1.17
|
||||
|
||||
@@ -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