Add a config option to disable Tinker Villagers trading. They'll have normal villager trades then. #1291

This commit is contained in:
Bernhard Bonigl committed 2015-01-02 21:04:03 +01:00
1 parent 22e9f4928b
commit dd4e165cb8
2 files changed
+6 -1

No files matched your search

+3 -1
View File
@@ -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");