update pulsar handling to use pulsars autogenerated configs

use .cfg file for tcon -- legacy one should be renamed if it is the only one present
only save config files if they have actually changed
This commit is contained in:
progwml6 committed 2014-06-30 21:52:31 -04:00
1 parent 3de90bded2
commit 75ea8723ee
8 files changed
+25 -75

No files matched your search

+8 -16
View File
@@ -80,7 +80,7 @@ public class TConstruct
public static TProxyCommon proxy;
/* Loads modules in a way that doesn't clutter the @Mod list */
private PulseManager pulsar = new PulseManager(modID); //Scheduled to change shortly.
private PulseManager pulsar = new PulseManager(modID, "TinkersModules"); //Scheduled to change shortly.
public TConstruct()
{
@@ -102,21 +102,13 @@ public class TConstruct
{
PHConstruct.initProps(event.getModConfigurationDirectory());
//Temporarily hijacked
if (PHConstruct.worldModule)
pulsar.registerPulse(new TinkerWorld());
if (PHConstruct.toolModule)
pulsar.registerPulse(new TinkerTools());
if (PHConstruct.smelteryModule)
pulsar.registerPulse(new TinkerSmeltery());
if (PHConstruct.mechworksModule)
pulsar.registerPulse(new TinkerMechworks());
if (PHConstruct.armorModule)
pulsar.registerPulse(new TinkerArmor());
/*if (PHConstruct.prayerModule)
pulsar.registerPulse(new TinkerPrayers());
if (PHConstruct.cropifyModule)
pulsar.registerPulse(new TinkerCropify());*/
pulsar.registerPulse(new TinkerWorld());
pulsar.registerPulse(new TinkerTools());
pulsar.registerPulse(new TinkerSmeltery());
pulsar.registerPulse(new TinkerMechworks());
pulsar.registerPulse(new TinkerArmor());
/*pulsar.registerPulse(new TinkerPrayers());
pulsar.registerPulse(new TinkerCropify());*/
TConstructRegistry.materialTab = new TabTools("TConstructMaterials");
TConstructRegistry.toolTab = new TabTools("TConstructTools");