diff options
author | kuba6000 <kuba.123123.6000@gmail.com> | 2022-08-10 15:57:40 +0200 |
---|---|---|
committer | kuba6000 <kuba.123123.6000@gmail.com> | 2022-08-10 15:57:40 +0200 |
commit | a6f18fd57ea6e216d4e90445ada8d4d5c56f8a51 (patch) | |
tree | 31a2fa8d8d84d0957895755b8b33b86aa1b215f3 /src/main/java/KubaTech/Config.java | |
parent | 55c3e624f7420e1f2e93a396cdef5189885062d9 (diff) | |
download | GT5-Unofficial-a6f18fd57ea6e216d4e90445ada8d4d5c56f8a51.tar.gz GT5-Unofficial-a6f18fd57ea6e216d4e90445ada8d4d5c56f8a51.tar.bz2 GT5-Unofficial-a6f18fd57ea6e216d4e90445ada8d4d5c56f8a51.zip |
Rename
Diffstat (limited to 'src/main/java/KubaTech/Config.java')
-rw-r--r-- | src/main/java/KubaTech/Config.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/KubaTech/Config.java b/src/main/java/KubaTech/Config.java new file mode 100644 index 0000000000..51e689bf37 --- /dev/null +++ b/src/main/java/KubaTech/Config.java @@ -0,0 +1,35 @@ +/* + * KubaTech - 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 KubaTech; + +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(); + } + } +} |