mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Add a config option to disable Tinker Villagers trading. They'll have normal villager trades then. #1291
This commit is contained in:
1 parent
22e9f4928b
commit
dd4e165cb8
2 files changed
+6
-1
No files matched your search
@@ -170,7 +170,9 @@ public class TConstruct
|
||||
// adds to the villager spawner egg
|
||||
VillagerRegistry.instance().registerVillagerId(78943);
|
||||
// moved down, not needed if 'addToVillages' is false
|
||||
VillagerRegistry.instance().registerVillageTradeHandler(78943, new TVillageTrades());
|
||||
if(PHConstruct.allowVillagerTrading)
|
||||
VillagerRegistry.instance().registerVillageTradeHandler(78943, new TVillageTrades());
|
||||
|
||||
VillagerRegistry.instance().registerVillageCreationHandler(new VillageToolStationHandler());
|
||||
VillagerRegistry.instance().registerVillageCreationHandler(new VillageSmelteryHandler());
|
||||
MapGenStructureIO.func_143031_a(ComponentToolWorkshop.class, "TConstruct:ToolWorkshopStructure");
|
||||
|
||||
@@ -8,6 +8,7 @@ import tconstruct.library.tools.AbilityHelper;
|
||||
public class PHConstruct
|
||||
{
|
||||
|
||||
|
||||
public static void initProps (File location)
|
||||
{
|
||||
|
||||
@@ -116,6 +117,7 @@ public class PHConstruct
|
||||
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);
|
||||
tinuDensity = config.get("Worldgen", "Tin Underground Density", 2).getInt(2);
|
||||
@@ -239,6 +241,7 @@ public class PHConstruct
|
||||
public static boolean generateEssenceBush;
|
||||
|
||||
public static boolean addToVillages;
|
||||
public static boolean allowVillagerTrading;
|
||||
|
||||
public static int copperuDensity;
|
||||
public static int tinuDensity;
|
||||
|
||||
Reference in new issue
Block a user