1.0.7 update :)
This commit is contained in:
@@ -5,7 +5,6 @@ import java.nio.charset.StandardCharsets
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
jcenter()
|
|
||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -2,13 +2,13 @@
|
|||||||
org.gradle.jvmargs=-Xmx1G
|
org.gradle.jvmargs=-Xmx1G
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://modmuss50.me/fabric.html
|
# check these on https://modmuss50.me/fabric.html
|
||||||
minecraft_version=21w20a
|
minecraft_version=1.17
|
||||||
yarn_mappings=21w20a+build.19
|
yarn_mappings=1.17+build.7
|
||||||
loader_version=0.11.3
|
loader_version=0.11.3
|
||||||
|
|
||||||
|
#Fabric api
|
||||||
|
fabric_version=0.34.10+1.17
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0.5
|
mod_version=1.0.7
|
||||||
maven_group=draylar
|
maven_group=draylar
|
||||||
archives_base_name=omega-config
|
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
|
// 1. serialize to disk if the config does not already exist
|
||||||
// 2. read from disk if it does exist
|
// 2. read from disk if it does exist
|
||||||
if (!configExists(config)) {
|
if (!configExists(config)) {
|
||||||
writeConfig(configClass, config);
|
config.save();
|
||||||
REGISTERED_CONFIGURATIONS.add(config);
|
REGISTERED_CONFIGURATIONS.add(config);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
@@ -79,7 +79,7 @@ public class OmegaConfig {
|
|||||||
T object = GSON.fromJson(res.toString(), configClass);
|
T object = GSON.fromJson(res.toString(), configClass);
|
||||||
|
|
||||||
// re-write the config to add new values
|
// re-write the config to add new values
|
||||||
writeConfig(configClass, object);
|
object.save();
|
||||||
REGISTERED_CONFIGURATIONS.add(object);
|
REGISTERED_CONFIGURATIONS.add(object);
|
||||||
return object;
|
return object;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"id": "omega-config",
|
"id": "omega-config",
|
||||||
"version": "${version}",
|
"version": "1.0.7",
|
||||||
"name": "OmegaConfig",
|
"name": "OmegaConfig",
|
||||||
"description": "The last config solution you will ever use.",
|
"description": "The last config solution you will ever use.",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Draylar"
|
"Draylar",
|
||||||
|
"Frqnny"
|
||||||
],
|
],
|
||||||
"contact": {},
|
"contact": {},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
Reference in New Issue
Block a user