Skip to content

Commit

Permalink
Carbon Config Compat Part 2 of probably 3
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoriusT committed Dec 12, 2023
1 parent dc2d4d5 commit edff6a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/main/java/gregapi/GT_API.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ public void onLoad(FMLInitializationEvent aEvent) {
@Override
@SuppressWarnings({ "resource", "deprecation" })
public void onModPreInit2(FMLPreInitializationEvent aEvent) {
FMLInterModComms.sendRuntimeMessage(MD.GT.mID, "carbonconfig", "remapGui", MD.GAPI.mID);

File
tFile = new File(DirectoriesGT.CONFIG_GT, "IDs.cfg");
if (!tFile.exists()) tFile = new File(DirectoriesGT.CONFIG_GT, "ids.cfg");
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/gregapi/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@

package gregapi.config;

import cpw.mods.fml.common.event.FMLInterModComms;
import gregapi.api.Abstract_Mod;
import gregapi.data.MD;
import gregapi.data.MT;
import gregapi.oredict.OreDictMaterial;
import gregapi.util.ST;
Expand Down Expand Up @@ -91,7 +89,7 @@ public Config(File aDirPath, String aFileName) {
mConfig.load();
mConfig.save();
Abstract_Mod.sConfigs.add(this);
FMLInterModComms.sendRuntimeMessage(MD.GT.mID, "carbonconfig", "registerGui", tPathUsed.getAbsolutePath());
//FMLInterModComms.sendRuntimeMessage(MD.GT.mID, "carbonconfig", "registerGui", tPathUsed.getAbsolutePath());
}

@Deprecated public Config(File aConfig) {this(new Configuration(aConfig));}
Expand Down

0 comments on commit edff6a1

Please sign in to comment.