mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
config file
This commit is contained in:
1 parent
226e977e85
commit
18647ceb31
7 files changed
+60
-17
No files matched your search
@@ -0,0 +1,31 @@
|
||||
package com.glodblock.github.common;
|
||||
|
||||
import cpw.mods.fml.relauncher.FMLInjectionData;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class Config {
|
||||
|
||||
private static final Configuration Config = new Configuration(new File(new File((File) FMLInjectionData.data()[6], "config"), "ae2fc.cfg"));
|
||||
|
||||
public static boolean fluidCells;
|
||||
public static boolean noFluidPacket;
|
||||
|
||||
public static void run() {
|
||||
loadCategory();
|
||||
loadProperty();
|
||||
}
|
||||
|
||||
private static void loadProperty() {
|
||||
fluidCells = Config.getBoolean("Enable Fluid Storage Cell", "Fluid Craft for AE2", true, "Enable this to generate the fluid storage cells. If you are playing with EC2, you can turn it off.");
|
||||
noFluidPacket = Config.getBoolean("No Fluid Packet", "Fluid Craft for AE2", false, "Enable this to make normal ME Interface can emit fluid with fluid pattern, like the Fluid Interface.");
|
||||
|
||||
if (Config.hasChanged())
|
||||
Config.save();
|
||||
}
|
||||
|
||||
private static void loadCategory() {
|
||||
Config.addCustomCategoryComment("Fluid Craft for AE2", "Settings for AE2FC.");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user