aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kubaworks/Config.java
diff options
context:
space:
mode:
authorkuba6000 <kuba.123123.6000@gmail.com>2022-08-05 01:16:57 +0200
committerkuba6000 <kuba.123123.6000@gmail.com>2022-08-05 01:16:57 +0200
commit55c3e624f7420e1f2e93a396cdef5189885062d9 (patch)
tree2bdbb9f31087331bfa3b3d7d7d13a462f92ce2c8 /src/main/java/kubaworks/Config.java
parent0b07653e13a262f404b231c68e03a979707b8b0c (diff)
downloadGT5-Unofficial-55c3e624f7420e1f2e93a396cdef5189885062d9.tar.gz
GT5-Unofficial-55c3e624f7420e1f2e93a396cdef5189885062d9.tar.bz2
GT5-Unofficial-55c3e624f7420e1f2e93a396cdef5189885062d9.zip
Empty minecraft mod
Diffstat (limited to 'src/main/java/kubaworks/Config.java')
-rw-r--r--src/main/java/kubaworks/Config.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/kubaworks/Config.java b/src/main/java/kubaworks/Config.java
new file mode 100644
index 0000000000..d0bcb0ebfd
--- /dev/null
+++ b/src/main/java/kubaworks/Config.java
@@ -0,0 +1,35 @@
+/*
+ * kubaworks - Gregtech Addon
+ * Copyright (C) 2022 kuba6000
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
+
+package kubaworks;
+
+import java.io.File;
+import net.minecraftforge.common.config.Configuration;
+
+public class Config {
+
+ public static void syncronizeConfiguration(File configFile) {
+ Configuration configuration = new Configuration(configFile);
+ configuration.load();
+
+ if (configuration.hasChanged()) {
+ configuration.save();
+ }
+ }
+}