Only register smeltery worldgen if smeltery module is enabled. Closes #1729

This commit is contained in:
Bernhard Bonigl committed 2015-08-17 12:14:13 +02:00
1 parent 5463130015
commit 60645d3e89
1 file changed
+4 -2
+4 -2
View File
@@ -197,9 +197,11 @@ public class TConstruct
VillagerRegistry.instance().registerVillageTradeHandler(78943, new TVillageTrades());
VillagerRegistry.instance().registerVillageCreationHandler(new VillageToolStationHandler());
VillagerRegistry.instance().registerVillageCreationHandler(new VillageSmelteryHandler());
MapGenStructureIO.func_143031_a(ComponentToolWorkshop.class, "TConstruct:ToolWorkshopStructure");
MapGenStructureIO.func_143031_a(ComponentSmeltery.class, "TConstruct:SmelteryStructure");
if(pulsar.isPulseLoaded("Tinkers' Smeltery")) {
VillagerRegistry.instance().registerVillageCreationHandler(new VillageSmelteryHandler());
MapGenStructureIO.func_143031_a(ComponentSmeltery.class, "TConstruct:SmelteryStructure");
}
}
TConstructAPI.PROP_NAME = TPlayerStats.PROP_NAME;