mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Fix JABBA-related issues with crafting station slots (#54)
* Fix shift-merging tools voiding items fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392> * Change 0-sized ItemStacks into null stacks in crafting station attached slots Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425> * Update buildscript * spotlessApply
This commit is contained in:
1 parent
18bfeaff32
commit
39be06c23b
571 files changed
+25959
-28223
No files matched your search
@@ -1,21 +1,17 @@
|
||||
package tconstruct.util.config;
|
||||
|
||||
import com.google.common.collect.Sets;
|
||||
import java.io.File;
|
||||
import java.util.Set;
|
||||
import net.minecraftforge.common.config.ConfigCategory;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
import net.minecraftforge.common.config.Property;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.library.tools.AbilityHelper;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Set;
|
||||
public class PHConstruct {
|
||||
|
||||
public class PHConstruct
|
||||
{
|
||||
|
||||
|
||||
public static void initProps (File location)
|
||||
{
|
||||
public static void initProps(File location) {
|
||||
|
||||
/* Here we will set up the config file for the mod
|
||||
* First: Create a folder inside the config folder
|
||||
@@ -25,120 +21,192 @@ public class PHConstruct
|
||||
File mainFile = new File(location + "/TinkersConstruct.cfg");
|
||||
File legacyFile16 = new File(location + "/TinkersWorkshop.txt");
|
||||
File legacyFile17 = new File(location + "/TConstruct.cfg");
|
||||
try
|
||||
{
|
||||
if (!mainFile.exists())
|
||||
{
|
||||
if (legacyFile16.exists())
|
||||
legacyFile16.renameTo(mainFile);
|
||||
if (legacyFile17.exists())
|
||||
legacyFile17.renameTo(mainFile);
|
||||
try {
|
||||
if (!mainFile.exists()) {
|
||||
if (legacyFile16.exists()) legacyFile16.renameTo(mainFile);
|
||||
if (legacyFile17.exists()) legacyFile17.renameTo(mainFile);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
} catch (Exception e) {
|
||||
TConstruct.logger.warn("Could not update legacy configuration file for TConstruct. Reason:");
|
||||
TConstruct.logger.warn(e.getLocalizedMessage());
|
||||
}
|
||||
|
||||
Configuration config = new Configuration(mainFile);
|
||||
//config.load(); /* Load happens in the constructor */
|
||||
// config.load(); /* Load happens in the constructor */
|
||||
|
||||
superfunWorld = config.get("Superfun", "All the world is Superfun", false).getBoolean(false);
|
||||
superfunWorld =
|
||||
config.get("Superfun", "All the world is Superfun", false).getBoolean(false);
|
||||
|
||||
keepHunger = config.get("Difficulty Changes", "Keep hunger on death", true).getBoolean(true);
|
||||
keepLevels = config.get("Difficulty Changes", "Keep levels on death", true).getBoolean(true);
|
||||
beginnerBook = config.get("Difficulty Changes", "Spawn beginner book", true).getBoolean(true);
|
||||
deathPenality = config.get("Difficulty Changes", "Tools lose 10% durability on death", true).getBoolean(true);
|
||||
balancedFluxModifier = config.get("Difficulty Changes", "Balanced Flux Modifier", true).getBoolean(true);
|
||||
keepHunger =
|
||||
config.get("Difficulty Changes", "Keep hunger on death", true).getBoolean(true);
|
||||
keepLevels =
|
||||
config.get("Difficulty Changes", "Keep levels on death", true).getBoolean(true);
|
||||
beginnerBook =
|
||||
config.get("Difficulty Changes", "Spawn beginner book", true).getBoolean(true);
|
||||
deathPenality = config.get("Difficulty Changes", "Tools lose 10% durability on death", true)
|
||||
.getBoolean(true);
|
||||
balancedFluxModifier =
|
||||
config.get("Difficulty Changes", "Balanced Flux Modifier", true).getBoolean(true);
|
||||
|
||||
enableTWood = config.get("Difficulty Changes", "Enable mod wooden tools", true).getBoolean(true);
|
||||
enableTStone = config.get("Difficulty Changes", "Enable mod stone tools", true).getBoolean(true);
|
||||
enableTCactus = config.get("Difficulty Changes", "Enable mod cactus tools", true).getBoolean(true);
|
||||
enableTBone = config.get("Difficulty Changes", "Enable mod bone tools", true).getBoolean(true);
|
||||
enableTFlint = config.get("Difficulty Changes", "Enable mod flint tools", true).getBoolean(true);
|
||||
enableTNetherrack = config.get("Difficulty Changes", "Enable mod netherrack tools", true).getBoolean(true);
|
||||
enableTSlime = config.get("Difficulty Changes", "Enable mod slime tools", true).getBoolean(true);
|
||||
enableTPaper = config.get("Difficulty Changes", "Enable mod paper tools", true).getBoolean(true);
|
||||
enableTBlueSlime = config.get("Difficulty Changes", "Enable mod blue slime tools", true).getBoolean(true);
|
||||
enableTWood = config.get("Difficulty Changes", "Enable mod wooden tools", true)
|
||||
.getBoolean(true);
|
||||
enableTStone =
|
||||
config.get("Difficulty Changes", "Enable mod stone tools", true).getBoolean(true);
|
||||
enableTCactus = config.get("Difficulty Changes", "Enable mod cactus tools", true)
|
||||
.getBoolean(true);
|
||||
enableTBone =
|
||||
config.get("Difficulty Changes", "Enable mod bone tools", true).getBoolean(true);
|
||||
enableTFlint =
|
||||
config.get("Difficulty Changes", "Enable mod flint tools", true).getBoolean(true);
|
||||
enableTNetherrack = config.get("Difficulty Changes", "Enable mod netherrack tools", true)
|
||||
.getBoolean(true);
|
||||
enableTSlime =
|
||||
config.get("Difficulty Changes", "Enable mod slime tools", true).getBoolean(true);
|
||||
enableTPaper =
|
||||
config.get("Difficulty Changes", "Enable mod paper tools", true).getBoolean(true);
|
||||
enableTBlueSlime = config.get("Difficulty Changes", "Enable mod blue slime tools", true)
|
||||
.getBoolean(true);
|
||||
|
||||
craftMetalTools = config.get("Difficulty Changes", "Craft metals with Wood Patterns", false).getBoolean(false);
|
||||
vanillaMetalBlocks = config.get("Difficulty Changes", "Craft vanilla metal blocks", true).getBoolean(true);
|
||||
lavaFortuneInteraction = config.get("Difficulty Changes", "Enable Auto-Smelt and Fortune interaction", true).getBoolean(true);
|
||||
removeGoldCastRecipes = config.get("Difficulty Changes", "Remove Gold Cast Recipes", true).getBoolean(true);
|
||||
removeVanillaToolRecipes = config.get("Difficulty Changes", "Remove Vanilla Tool Recipes", false).getBoolean(false);
|
||||
labotimizeVanillaTools = config.get("Difficulty Changes", "Remove Vanilla Tool Effectiveness", false).getBoolean(false);
|
||||
miningLevelIncrease = config.get("Difficulty Changes", "Modifiers increase Mining Level", true).getBoolean(true);
|
||||
denyMattock = config.get("Difficulty Changes", "Deny creation of non-metal mattocks", false).getBoolean(false);
|
||||
craftEndstone = config.get("Difficulty Changes", "Allow creation of endstone", true).getBoolean(true);
|
||||
alternativeBoltRecipe = config.get("Difficulty Changes", "Add alternative recipe for bolt parts: arrowhead + toolrod in a crafting grid", false).getBoolean(false);
|
||||
craftMetalTools = config.get("Difficulty Changes", "Craft metals with Wood Patterns", false)
|
||||
.getBoolean(false);
|
||||
vanillaMetalBlocks = config.get("Difficulty Changes", "Craft vanilla metal blocks", true)
|
||||
.getBoolean(true);
|
||||
lavaFortuneInteraction = config.get("Difficulty Changes", "Enable Auto-Smelt and Fortune interaction", true)
|
||||
.getBoolean(true);
|
||||
removeGoldCastRecipes = config.get("Difficulty Changes", "Remove Gold Cast Recipes", true)
|
||||
.getBoolean(true);
|
||||
removeVanillaToolRecipes = config.get("Difficulty Changes", "Remove Vanilla Tool Recipes", false)
|
||||
.getBoolean(false);
|
||||
labotimizeVanillaTools = config.get("Difficulty Changes", "Remove Vanilla Tool Effectiveness", false)
|
||||
.getBoolean(false);
|
||||
miningLevelIncrease = config.get("Difficulty Changes", "Modifiers increase Mining Level", true)
|
||||
.getBoolean(true);
|
||||
denyMattock = config.get("Difficulty Changes", "Deny creation of non-metal mattocks", false)
|
||||
.getBoolean(false);
|
||||
craftEndstone = config.get("Difficulty Changes", "Allow creation of endstone", true)
|
||||
.getBoolean(true);
|
||||
alternativeBoltRecipe = config.get(
|
||||
"Difficulty Changes",
|
||||
"Add alternative recipe for bolt parts: arrowhead + toolrod in a crafting grid",
|
||||
false)
|
||||
.getBoolean(false);
|
||||
|
||||
naturalSlimeSpawn = config.get("Mobs", "Blue Slime spawn chance", 1, "Set to 0 to disable").getInt(1);
|
||||
naturalSlimeSpawn = config.get("Mobs", "Blue Slime spawn chance", 1, "Set to 0 to disable")
|
||||
.getInt(1);
|
||||
|
||||
ingotsPerOre = config.get("Smeltery Output Modification", "Ingots per ore", 2, "Number of ingots returned from smelting ores in the smeltery").getDouble(2);
|
||||
ingotsBronzeAlloy = config.get("Smeltery Output Modification", "Bronze ingot return", 4, "Number of ingots returned from smelting Bronze in the smeltery").getDouble(4);
|
||||
ingotsAluminumBrassAlloy = config.get("Smeltery Output Modification", "Aluminum Brass ingot return", 4, "Number of ingots returned from smelting Aluminum Brass in the smeltery").getDouble(4);
|
||||
ingotsAlumiteAlloy = config.get("Smeltery Output Modification", "Alumite ingot return", 3, "Number of ingots returned from smelting Alumite in the smeltery").getDouble(3);
|
||||
ingotsManyullynAlloy = config.get("Smeltery Output Modification", "Manyullyn ingot return", 1, "Number of ingots returned from smelting Manyullyn in the smeltery").getDouble(1);
|
||||
ingotsPigironAlloy = config.get("Smeltery Output Modification", "Pig Iron ingot return", 1, "Number of ingots returned from smelting Pig Iron in the smeltery").getDouble(1);
|
||||
ingotsPerOre = config.get(
|
||||
"Smeltery Output Modification",
|
||||
"Ingots per ore",
|
||||
2,
|
||||
"Number of ingots returned from smelting ores in the smeltery")
|
||||
.getDouble(2);
|
||||
ingotsBronzeAlloy = config.get(
|
||||
"Smeltery Output Modification",
|
||||
"Bronze ingot return",
|
||||
4,
|
||||
"Number of ingots returned from smelting Bronze in the smeltery")
|
||||
.getDouble(4);
|
||||
ingotsAluminumBrassAlloy = config.get(
|
||||
"Smeltery Output Modification",
|
||||
"Aluminum Brass ingot return",
|
||||
4,
|
||||
"Number of ingots returned from smelting Aluminum Brass in the smeltery")
|
||||
.getDouble(4);
|
||||
ingotsAlumiteAlloy = config.get(
|
||||
"Smeltery Output Modification",
|
||||
"Alumite ingot return",
|
||||
3,
|
||||
"Number of ingots returned from smelting Alumite in the smeltery")
|
||||
.getDouble(3);
|
||||
ingotsManyullynAlloy = config.get(
|
||||
"Smeltery Output Modification",
|
||||
"Manyullyn ingot return",
|
||||
1,
|
||||
"Number of ingots returned from smelting Manyullyn in the smeltery")
|
||||
.getDouble(1);
|
||||
ingotsPigironAlloy = config.get(
|
||||
"Smeltery Output Modification",
|
||||
"Pig Iron ingot return",
|
||||
1,
|
||||
"Number of ingots returned from smelting Pig Iron in the smeltery")
|
||||
.getDouble(1);
|
||||
|
||||
capesEnabled = config.get("Superfun", "Enable-TCon-Capes", true).getBoolean(true);
|
||||
|
||||
achievementsEnabled = config.get("Achievements", "Enable Achievements", true).getBoolean(true);
|
||||
achievementsEnabled =
|
||||
config.get("Achievements", "Enable Achievements", true).getBoolean(true);
|
||||
|
||||
boolean ic2 = true;
|
||||
boolean xycraft = true;
|
||||
try {
|
||||
Class c = Class.forName("ic2.core.IC2");
|
||||
ic2 = false;
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
catch (Exception ignored) {}
|
||||
|
||||
|
||||
try {
|
||||
Class c = Class.forName("soaryn.xycraft.core.XyCraft");
|
||||
xycraft = false;
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
catch (Exception ignored) {}
|
||||
|
||||
generateCopper = config.get("Worldgen Disabler", "Generate Copper", ic2).getBoolean(ic2);
|
||||
generateTin = config.get("Worldgen Disabler", "Generate Tin", ic2).getBoolean(ic2);
|
||||
generateAluminum = config.get("Worldgen Disabler", "Generate Aluminum", xycraft).getBoolean(xycraft);
|
||||
if(config.hasKey("worldgen disabler", "Generate Cobalt and Ardite")) {
|
||||
generateNetherOres = config.get("Worldgen Disabler", "Generate Cobalt and Ardite", true).getBoolean(true);
|
||||
generateAluminum =
|
||||
config.get("Worldgen Disabler", "Generate Aluminum", xycraft).getBoolean(xycraft);
|
||||
if (config.hasKey("worldgen disabler", "Generate Cobalt and Ardite")) {
|
||||
generateNetherOres = config.get("Worldgen Disabler", "Generate Cobalt and Ardite", true)
|
||||
.getBoolean(true);
|
||||
generateCobalt = generateArdite = generateNetherOres;
|
||||
ConfigCategory cat = config.getCategory("worldgen disabler");
|
||||
cat.remove("Generate Cobalt and Ardite");
|
||||
}
|
||||
else {
|
||||
generateCobalt = config.get("Worldgen Disabler", "Generate Cobalt", true).getBoolean(true);
|
||||
generateArdite = config.get("Worldgen Disabler", "Generate Ardite", true).getBoolean(true);
|
||||
} else {
|
||||
generateCobalt =
|
||||
config.get("Worldgen Disabler", "Generate Cobalt", true).getBoolean(true);
|
||||
generateArdite =
|
||||
config.get("Worldgen Disabler", "Generate Ardite", true).getBoolean(true);
|
||||
}
|
||||
|
||||
generateIronSurface = config.get("Worldgen Disabler", "Generate Surface Iron", true).getBoolean(true);
|
||||
generateGoldSurface = config.get("Worldgen Disabler", "Generate Surface Gold", true).getBoolean(true);
|
||||
generateCopperSurface = config.get("Worldgen Disabler", "Generate Surface Copper", true).getBoolean(true);
|
||||
generateTinSurface = config.get("Worldgen Disabler", "Generate Surface Tin", true).getBoolean(true);
|
||||
generateAluminumSurface = config.get("Worldgen Disabler", "Generate Surface Aluminum", true).getBoolean(true);
|
||||
generateIronSurface =
|
||||
config.get("Worldgen Disabler", "Generate Surface Iron", true).getBoolean(true);
|
||||
generateGoldSurface =
|
||||
config.get("Worldgen Disabler", "Generate Surface Gold", true).getBoolean(true);
|
||||
generateCopperSurface =
|
||||
config.get("Worldgen Disabler", "Generate Surface Copper", true).getBoolean(true);
|
||||
generateTinSurface =
|
||||
config.get("Worldgen Disabler", "Generate Surface Tin", true).getBoolean(true);
|
||||
generateAluminumSurface = config.get("Worldgen Disabler", "Generate Surface Aluminum", true)
|
||||
.getBoolean(true);
|
||||
|
||||
generateIronBush = config.get("Worldgen Disabler", "Generate Iron Bushes", true).getBoolean(true);
|
||||
generateGoldBush = config.get("Worldgen Disabler", "Generate Gold Bushes", true).getBoolean(true);
|
||||
generateCopperBush = config.get("Worldgen Disabler", "Generate Copper Bushes", true).getBoolean(true);
|
||||
generateTinBush = config.get("Worldgen Disabler", "Generate Tin Bushes", true).getBoolean(true);
|
||||
generateAluminumBush = config.get("Worldgen Disabler", "Generate Aluminum Bushes", true).getBoolean(true);
|
||||
generateEssenceBush = config.get("Worldgen Disabler", "Generate Essence Bushes", true).getBoolean(true);
|
||||
addToVillages = config.get("Worldgen Disabler", "Add Village Generation", true).getBoolean(true);
|
||||
allowVillagerTrading = config.get("Worldgen Disabler", "Enable the Tinkers Villager to trade for oreberries", true).getBoolean(true);
|
||||
generateIronBush =
|
||||
config.get("Worldgen Disabler", "Generate Iron Bushes", true).getBoolean(true);
|
||||
generateGoldBush =
|
||||
config.get("Worldgen Disabler", "Generate Gold Bushes", true).getBoolean(true);
|
||||
generateCopperBush =
|
||||
config.get("Worldgen Disabler", "Generate Copper Bushes", true).getBoolean(true);
|
||||
generateTinBush =
|
||||
config.get("Worldgen Disabler", "Generate Tin Bushes", true).getBoolean(true);
|
||||
generateAluminumBush = config.get("Worldgen Disabler", "Generate Aluminum Bushes", true)
|
||||
.getBoolean(true);
|
||||
generateEssenceBush =
|
||||
config.get("Worldgen Disabler", "Generate Essence Bushes", true).getBoolean(true);
|
||||
addToVillages =
|
||||
config.get("Worldgen Disabler", "Add Village Generation", true).getBoolean(true);
|
||||
allowVillagerTrading = config.get(
|
||||
"Worldgen Disabler", "Enable the Tinkers Villager to trade for oreberries", true)
|
||||
.getBoolean(true);
|
||||
|
||||
copperuDensity = config.get("Worldgen", "Copper Underground Density", 2, "Density: Chances per chunk").getInt(2);
|
||||
copperuDensity = config.get("Worldgen", "Copper Underground Density", 2, "Density: Chances per chunk")
|
||||
.getInt(2);
|
||||
tinuDensity = config.get("Worldgen", "Tin Underground Density", 2).getInt(2);
|
||||
aluminumuDensity = config.get("Worldgen", "Aluminum Underground Density", 3).getInt(3);
|
||||
if(config.hasKey("worldgen", "Nether Ores Density")) {
|
||||
aluminumuDensity =
|
||||
config.get("Worldgen", "Aluminum Underground Density", 3).getInt(3);
|
||||
if (config.hasKey("worldgen", "Nether Ores Density")) {
|
||||
netherDensity = config.get("Worldgen", "Nether Ores Density", 8).getInt(8);
|
||||
cobaltDensity = arditeDensity = netherDensity;
|
||||
ConfigCategory cat = config.getCategory("worldgen");
|
||||
cat.remove("Nether Ores Density");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
cobaltDensity = config.get("worldgen", "Cobalt Ore Density", 8).getInt(8);
|
||||
arditeDensity = config.get("worldgen", "Ardite Ore Density", 8).getInt(8);
|
||||
}
|
||||
@@ -152,7 +220,8 @@ public class PHConstruct
|
||||
|
||||
ironsRarity = config.get("Worldgen", "Iron Surface Rarity", 400).getInt(400);
|
||||
goldsRarity = config.get("Worldgen", "Gold Surface Rarity", 900).getInt(900);
|
||||
coppersRarity = config.get("Worldgen", "Copper Surface Rarity", 100, "Rarity: 1/num to generate in chunk").getInt(100);
|
||||
coppersRarity = config.get("Worldgen", "Copper Surface Rarity", 100, "Rarity: 1/num to generate in chunk")
|
||||
.getInt(100);
|
||||
tinsRarity = config.get("Worldgen", "Tin Surface Rarity", 100).getInt(100);
|
||||
aluminumsRarity = config.get("Worldgen", "Aluminum Surface Rarity", 50).getInt(50);
|
||||
cobaltsRarity = config.get("Worldgen", "Cobalt Surface Rarity", 2000).getInt(2000);
|
||||
@@ -179,16 +248,38 @@ public class PHConstruct
|
||||
aluminumBushMaxY = config.get("Worldgen", "Aluminum Bush Max Y", 60).getInt(60);
|
||||
|
||||
seaLevel = config.get("general", "Sea level", 64).getInt(64);
|
||||
tconComesFirst = config.get("general", "Always cast TConstruct ingots", true, "You will always get a TConstruct item from casting an ingot or block.").getBoolean();
|
||||
tconComesFirst = config.get(
|
||||
"general",
|
||||
"Always cast TConstruct ingots",
|
||||
true,
|
||||
"You will always get a TConstruct item from casting an ingot or block.")
|
||||
.getBoolean();
|
||||
|
||||
enableHealthRegen = config.get("Ultra Hardcore Changes", "Passive Health Regen", true).getBoolean(true);
|
||||
goldAppleRecipe = config.get("Ultra Hardcore Changes", "Change Crafting Recipes", false, "Makes recipes for gold apples, carrots, and melon potions more expensive").getBoolean(false);
|
||||
dropPlayerHeads = config.get("Ultra Hardcore Changes", "Players drop heads on death", false).getBoolean(false);
|
||||
uhcGhastDrops = config.get("Ultra Hardcore Changes", "Change Ghast drops to Gold Ingots", false).getBoolean(false);
|
||||
worldBorder = config.get("Ultra Hardcore Changes", "Add World Border", false).getBoolean(false);
|
||||
worldBorderSize = config.get("Ultra Hardcore Changes", "World Border Radius", 1000).getInt(1000);
|
||||
freePatterns = config.get("Ultra Hardcore Changes", "Add Patterns to Pattern Chests", false, "Gives all tier 1 patterns when pattern chest is placed").getBoolean(false);
|
||||
AbilityHelper.necroticUHS = config.get("Ultra Hardcore Changes", "Necrotic modifier only heals on hostile mob kills", false).getBoolean(false);
|
||||
enableHealthRegen = config.get("Ultra Hardcore Changes", "Passive Health Regen", true)
|
||||
.getBoolean(true);
|
||||
goldAppleRecipe = config.get(
|
||||
"Ultra Hardcore Changes",
|
||||
"Change Crafting Recipes",
|
||||
false,
|
||||
"Makes recipes for gold apples, carrots, and melon potions more expensive")
|
||||
.getBoolean(false);
|
||||
dropPlayerHeads = config.get("Ultra Hardcore Changes", "Players drop heads on death", false)
|
||||
.getBoolean(false);
|
||||
uhcGhastDrops = config.get("Ultra Hardcore Changes", "Change Ghast drops to Gold Ingots", false)
|
||||
.getBoolean(false);
|
||||
worldBorder =
|
||||
config.get("Ultra Hardcore Changes", "Add World Border", false).getBoolean(false);
|
||||
worldBorderSize = config.get("Ultra Hardcore Changes", "World Border Radius", 1000)
|
||||
.getInt(1000);
|
||||
freePatterns = config.get(
|
||||
"Ultra Hardcore Changes",
|
||||
"Add Patterns to Pattern Chests",
|
||||
false,
|
||||
"Gives all tier 1 patterns when pattern chest is placed")
|
||||
.getBoolean(false);
|
||||
AbilityHelper.necroticUHS = config.get(
|
||||
"Ultra Hardcore Changes", "Necrotic modifier only heals on hostile mob kills", false)
|
||||
.getBoolean(false);
|
||||
|
||||
// Slime pools
|
||||
islandRarity = config.get("Worldgen", "Slime Island Rarity", 1450).getInt(1450);
|
||||
@@ -199,40 +290,75 @@ public class PHConstruct
|
||||
connectedTexturesMode = conTexMode.getInt(2);
|
||||
|
||||
// dimension blacklist
|
||||
cfgForbiddenDim = config.get("DimBlackList", "ForbiddenDim", new int[] {}, "Disallow Traveller's Belt ability to swap inventories for certain dimension ID's").getIntList();
|
||||
cfgDimBlackList = config.get("DimBlackList", "SlimeIslandDimBlacklist", new int[] {}, "Add dimension ID's to prevent slime islands from generating in them").getIntList();
|
||||
slimeIslGenDim0Only = config.get("DimBlackList", "GenerateSlimeIslandInDim0Only", false, "True: slime islands wont generate in any ages other than overworld(if enabled); False: will generate in all non-blackisted ages").getBoolean(false);
|
||||
slimeIslGenDim0 = config.get("DimBlackList", "slimeIslGenDim0", true, "True: slime islands generate in overworld; False they do not generate").getBoolean(true);
|
||||
genIslandsFlat = config.get("DimBlacklist", "genIslandsFlat", false, "Generate slime islands in flat worlds").getBoolean(false);
|
||||
genOresFlat = config.get("DimBlacklist", "genOresFlat", false, "Generate ores in flat worlds").getBoolean(false);
|
||||
cfgForbiddenDim = config.get(
|
||||
"DimBlackList",
|
||||
"ForbiddenDim",
|
||||
new int[] {},
|
||||
"Disallow Traveller's Belt ability to swap inventories for certain dimension ID's")
|
||||
.getIntList();
|
||||
cfgDimBlackList = config.get(
|
||||
"DimBlackList",
|
||||
"SlimeIslandDimBlacklist",
|
||||
new int[] {},
|
||||
"Add dimension ID's to prevent slime islands from generating in them")
|
||||
.getIntList();
|
||||
slimeIslGenDim0Only = config.get(
|
||||
"DimBlackList",
|
||||
"GenerateSlimeIslandInDim0Only",
|
||||
false,
|
||||
"True: slime islands wont generate in any ages other than overworld(if enabled); False: will generate in all non-blackisted ages")
|
||||
.getBoolean(false);
|
||||
slimeIslGenDim0 = config.get(
|
||||
"DimBlackList",
|
||||
"slimeIslGenDim0",
|
||||
true,
|
||||
"True: slime islands generate in overworld; False they do not generate")
|
||||
.getBoolean(true);
|
||||
genIslandsFlat = config.get("DimBlacklist", "genIslandsFlat", false, "Generate slime islands in flat worlds")
|
||||
.getBoolean(false);
|
||||
genOresFlat = config.get("DimBlacklist", "genOresFlat", false, "Generate ores in flat worlds")
|
||||
.getBoolean(false);
|
||||
|
||||
// Experimental functionality
|
||||
throwableSmeltery = config.get("Experimental", "Items can be thrown into smelteries", true).getBoolean(true);
|
||||
meltableHorses = config.get("Experimental", "Allow horses to be melted down for glue", true).getBoolean(true);
|
||||
meltableVillagers = config.get("Experimental", "Allow villagers to be melted down for emeralds", true).getBoolean(true);
|
||||
throwableSmeltery = config.get("Experimental", "Items can be thrown into smelteries", true)
|
||||
.getBoolean(true);
|
||||
meltableHorses = config.get("Experimental", "Allow horses to be melted down for glue", true)
|
||||
.getBoolean(true);
|
||||
meltableVillagers = config.get("Experimental", "Allow villagers to be melted down for emeralds", true)
|
||||
.getBoolean(true);
|
||||
minimalTextures = config.get("Experimental", "Minimal Textures", false).getBoolean(false);
|
||||
extraBlockUpdates = config.get("Experimental", "Send additional block updates when using AOE tools", true,"This fixes very fast tools sometimes resulting in ghost blocks, but causes a bit more network traffic. Should be fine in theory.").getBoolean(true);
|
||||
heartDropBlacklist = config.get("Experimental", "YellowHeartDropBlacklist", new String[] {"entitynpc", "entitycustomnpc"}, "Entity classes listed here will not drop yellow hearts. The values are the actual class names in lowercase.").getStringList();
|
||||
extraBlockUpdates = config.get(
|
||||
"Experimental",
|
||||
"Send additional block updates when using AOE tools",
|
||||
true,
|
||||
"This fixes very fast tools sometimes resulting in ghost blocks, but causes a bit more network traffic. Should be fine in theory.")
|
||||
.getBoolean(true);
|
||||
heartDropBlacklist = config.get(
|
||||
"Experimental",
|
||||
"YellowHeartDropBlacklist",
|
||||
new String[] {"entitynpc", "entitycustomnpc"},
|
||||
"Entity classes listed here will not drop yellow hearts. The values are the actual class names in lowercase.")
|
||||
.getStringList();
|
||||
|
||||
craftingStationBlacklist = Sets.newHashSet(config.get("CraftingStationBlacklist", "tileEntities", new String[] {
|
||||
"wanion.avaritiaddons.block.chest.infinity.TileEntityInfinityChest"
|
||||
}).getStringList());
|
||||
|
||||
"wanion.avaritiaddons.block.chest.infinity.TileEntityInfinityChest"
|
||||
})
|
||||
.getStringList());
|
||||
|
||||
/* Save the configuration file only if it has changed */
|
||||
if (config.hasChanged())
|
||||
config.save();
|
||||
if (config.hasChanged()) config.save();
|
||||
|
||||
File gt = new File(location + "/GregTech");
|
||||
if (gt.exists())
|
||||
{
|
||||
if (gt.exists()) {
|
||||
File gtDyn = new File(location + "/GregTech/DynamicConfig.cfg");
|
||||
Configuration gtConfig = new Configuration(gtDyn);
|
||||
gtConfig.load();
|
||||
gregtech = gtConfig.get("smelting", "tile.anvil.slightlyDamaged", false).getBoolean(false);
|
||||
gregtech = gtConfig.get("smelting", "tile.anvil.slightlyDamaged", false)
|
||||
.getBoolean(false);
|
||||
}
|
||||
}
|
||||
|
||||
//Modules
|
||||
// Modules
|
||||
public static boolean worldModule;
|
||||
public static boolean toolModule;
|
||||
public static boolean smelteryModule;
|
||||
@@ -250,8 +376,10 @@ public class PHConstruct
|
||||
public static boolean generateCopper;
|
||||
public static boolean generateTin;
|
||||
public static boolean generateAluminum;
|
||||
|
||||
@Deprecated
|
||||
public static boolean generateNetherOres;
|
||||
|
||||
public static boolean generateArdite;
|
||||
public static boolean generateCobalt;
|
||||
|
||||
@@ -275,8 +403,10 @@ public class PHConstruct
|
||||
public static int copperuDensity;
|
||||
public static int tinuDensity;
|
||||
public static int aluminumuDensity;
|
||||
|
||||
@Deprecated
|
||||
public static int netherDensity;
|
||||
|
||||
public static int cobaltDensity;
|
||||
public static int arditeDensity;
|
||||
|
||||
|
||||
Reference in new issue
Block a user