diff options
author | makamys <makamys@outlook.com> | 2023-02-09 22:41:01 +0100 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2023-02-09 22:41:32 +0100 |
commit | 783b4575d37d86c69b0d2c8690fd13da576f1000 (patch) | |
tree | 812b95d0df67dd2a9c2aa57b8a6ce998bc5c32f5 /src/main/java/makamys/neodymium/config | |
parent | cd5305c6a383ebb8bf530d0f909c2d32c2ab6723 (diff) | |
download | Neodymium-783b4575d37d86c69b0d2c8690fd13da576f1000.tar.gz Neodymium-783b4575d37d86c69b0d2c8690fd13da576f1000.tar.bz2 Neodymium-783b4575d37d86c69b0d2c8690fd13da576f1000.zip |
Move constants to Constants class
Fixes crash with something (AppleCore? WitchingGadgets? Hodgepodge?)
Diffstat (limited to 'src/main/java/makamys/neodymium/config')
-rw-r--r-- | src/main/java/makamys/neodymium/config/Config.java | 7 | ||||
-rw-r--r-- | src/main/java/makamys/neodymium/config/NdGuiConfig.java | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/makamys/neodymium/config/Config.java b/src/main/java/makamys/neodymium/config/Config.java index 8dc7ffa..4935851 100644 --- a/src/main/java/makamys/neodymium/config/Config.java +++ b/src/main/java/makamys/neodymium/config/Config.java @@ -4,8 +4,9 @@ import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE; import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE; import static java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY; -import static makamys.neodymium.Neodymium.LOGGER; -import static makamys.neodymium.Neodymium.MODID; +import static makamys.neodymium.Constants.LOGGER; +import static makamys.neodymium.Constants.MODID; +import static makamys.neodymium.Constants.VERSION; import java.io.File; import java.io.IOException; @@ -100,7 +101,7 @@ public class Config { e.printStackTrace(); } - config = new Configuration(configFile, Neodymium.VERSION); + config = new Configuration(configFile, VERSION); config.load(); diff --git a/src/main/java/makamys/neodymium/config/NdGuiConfig.java b/src/main/java/makamys/neodymium/config/NdGuiConfig.java index ff16595..6be497d 100644 --- a/src/main/java/makamys/neodymium/config/NdGuiConfig.java +++ b/src/main/java/makamys/neodymium/config/NdGuiConfig.java @@ -1,6 +1,6 @@ package makamys.neodymium.config; -import static makamys.neodymium.Neodymium.MODID; +import static makamys.neodymium.Constants.MODID; import cpw.mods.fml.client.config.GuiConfig; import net.minecraft.client.gui.GuiScreen; |