Skip to content

Commit

Permalink
Only register smeltery worldgen if smeltery module is enabled. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Aug 17, 2015
1 parent 5463130 commit 60645d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/tconstruct/TConstruct.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,11 @@ public void preInit (FMLPreInitializationEvent event)
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;
Expand Down

0 comments on commit 60645d3

Please sign in to comment.