Skip to content

Commit

Permalink
compat for CarbonConfig, part 1 of hopefully 1
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoriusT committed Dec 4, 2023
1 parent 63ed237 commit 791b7b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions src/main/java/gregapi/config/Config.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020 GregTech-6 Team
* Copyright (c) 2023 GregTech-6 Team
*
* This file is part of GregTech.
*
Expand All @@ -19,14 +19,9 @@

package gregapi.config;

import static gregapi.data.CS.*;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;

import cpw.mods.fml.common.event.FMLInterModComms;
import gregapi.api.Abstract_Mod;
import gregapi.data.CS.DirectoriesGT;
import gregapi.data.MD;
import gregapi.data.MT;
import gregapi.oredict.OreDictMaterial;
import gregapi.util.ST;
Expand All @@ -35,6 +30,12 @@
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;

import static gregapi.data.CS.*;

/**
* @author Gregorius Techneticies
*/
Expand Down Expand Up @@ -90,6 +91,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());
}

@Deprecated public Config(File aConfig) {this(new Configuration(aConfig));}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gregapi/data/CS.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public class CS {
public static int EU_PER_SMELT = 256;
/** The value of how many Energy Units a Liter of Lava is worth. It is worth about 180 to 333 RF in TE. Well, I go for 320 RF in GT, meaning 80 GU/L or 80000 GU per Bucket. Cannot be above 200 GU/L or else MFR exploit with infinite Lava! */
public static int EU_PER_LAVA = 80;
/** The value of how many Energy Units a Liter of Hot Coolant also known as Heatant is worth. It is worth 20 EU in IC2 Experimental, so it's the same 20 GU in GT6. */
/** The value of how many Energy Units a Liter of Hot Coolant also known as "Heatant" is worth. It is worth 20 EU in IC2 Experimental, so it's the same 20 GU in GT6. */
public static int EU_PER_COOLANT = 20;
/** The value of how many Energy Units a Liter of Semiheavy Water needs to turn into Hot Semiheavy Water. */
public static int EU_PER_SEMI_HEAVY_WATER = 40;
Expand Down

0 comments on commit 791b7b7

Please sign in to comment.