mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Added LBSM toggle for ME radiation
This commit is contained in:
parent
39c3596cc1
commit
64c9d19942
@ -47,6 +47,7 @@ public class GeneralConfig {
|
||||
public static boolean enableLBSMUnlockAnvil = true;
|
||||
public static boolean enableLBSMSimpleCrafting = true;
|
||||
public static boolean enableLBSMSimpleMedicineRecipes = true;
|
||||
public static boolean enableLBSMSafeMEDrives = true;
|
||||
public static int schrabRate = 20;
|
||||
|
||||
public static void loadFromConfig(Configuration config) {
|
||||
@ -111,6 +112,7 @@ public class GeneralConfig {
|
||||
enableLBSMUnlockAnvil = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_recipeUnlockAnvil", "When enabled, all anvil recipes are available at tier 1", true);
|
||||
enableLBSMSimpleCrafting = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_recipeSimpleCrafting", "When enabled, some uncraftable or more expansive items get simple crafting recipes. Scorched uranium also becomes washable", true);
|
||||
enableLBSMSimpleMedicineRecipes = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_recipeSimpleMedicine", "When enabled, makes some medicine recipes (line ones that require bismuth) much more affordable", true);
|
||||
enableLBSMSafeMEDrives = CommonConfig.createConfigBool(config, CATEGORY_LBSM, "LBSM_safeMEDrives", "When enabled, prevents ME Drives and Portable Cells from becoming radioactive", true);
|
||||
schrabRate = CommonConfig.createConfigInt(config, CATEGORY_LBSM, "LBSM_schrabOreRate", "Changes the amount of uranium ore needed on average to create one schrabidium ore using nukes. Standard mode value is 100", 20);
|
||||
|
||||
if(enable528) enableLBSM = false;
|
||||
|
||||
@ -486,7 +486,12 @@ public class HazardRegistry {
|
||||
|
||||
public static void registerTrafos() {
|
||||
HazardSystem.trafos.add(new HazardTransformerRadiationNBT());
|
||||
HazardSystem.trafos.add(new HazardTransformerRadiationME());
|
||||
if(GeneralConfig.enableLBSM && GeneralConfig.enableLBSMSafeMEDrives)
|
||||
{
|
||||
return;
|
||||
} else {
|
||||
HazardSystem.trafos.add(new HazardTransformerRadiationME());
|
||||
}
|
||||
}
|
||||
|
||||
private static HazardData makeData() { return new HazardData(); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user