From 60645d3e89c4d54d64fa2529033af8a12c1d3701 Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Mon, 17 Aug 2015 12:14:13 +0200 Subject: [PATCH] Only register smeltery worldgen if smeltery module is enabled. Closes #1729 --- src/main/java/tconstruct/TConstruct.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/tconstruct/TConstruct.java b/src/main/java/tconstruct/TConstruct.java index 7a79a4af697..c1577e991c5 100644 --- a/src/main/java/tconstruct/TConstruct.java +++ b/src/main/java/tconstruct/TConstruct.java @@ -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;