Created a config to disable the ore generator in total
This commit is contained in:
parent
2b4bac211d
commit
e6d0cc5319
2 changed files with 92 additions and 91 deletions
|
@ -40,11 +40,9 @@ import cpw.mods.fml.common.network.NetworkMod;
|
|||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
/**
|
||||
* The core module of Resonant Induction
|
||||
/** The core module of Resonant Induction
|
||||
*
|
||||
* @author Calclavia
|
||||
*/
|
||||
* @author Calclavia */
|
||||
@Mod(modid = ResonantInduction.ID, name = ResonantInduction.NAME, version = Reference.VERSION, dependencies = "required-after:ForgeMultipart@[1.0.0.244,);required-after:CalclaviaCore;before:ThermalExpansion;before:Mekanism")
|
||||
@NetworkMod(channels = Reference.CHANNEL, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketHandler.class)
|
||||
@ModstatInfo(prefix = "resonantin")
|
||||
|
@ -81,12 +79,14 @@ public class ResonantInduction
|
|||
|
||||
public static final ContentRegistry contentRegistry = new ContentRegistry(Settings.CONFIGURATION, Settings.idManager, ID).setPrefix(Reference.PREFIX).setTab(TabRI.CORE);
|
||||
|
||||
/**
|
||||
* Recipe Types
|
||||
*/
|
||||
/** Recipe Types */
|
||||
public static enum RecipeType
|
||||
{
|
||||
CRUSHER, GRINDER, MIXER, SMELTER, SAWMILL;
|
||||
CRUSHER,
|
||||
GRINDER,
|
||||
MIXER,
|
||||
SMELTER,
|
||||
SAWMILL;
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
@ -102,9 +102,7 @@ public class ResonantInduction
|
|||
|
||||
blockMachinePart = contentRegistry.createBlock(BlockMachineMaterial.class, ItemBlockMetadata.class);
|
||||
|
||||
/**
|
||||
* Melting dusts
|
||||
*/
|
||||
/** Melting dusts */
|
||||
blockDust = contentRegistry.createTile(BlockDust.class, TileMaterial.class).setCreativeTab(null);
|
||||
|
||||
// Items
|
||||
|
@ -152,6 +150,7 @@ public class ResonantInduction
|
|||
|
||||
Settings.CONFIGURATION.save();
|
||||
// Generate Resources
|
||||
if (Settings.RESOURCE_GENERATOR)
|
||||
ResourceGenerator.generateOreResources();
|
||||
proxy.postInit();
|
||||
}
|
||||
|
|
|
@ -65,6 +65,8 @@ public class Settings
|
|||
public static double LEVITATOR_MAX_SPEED = .2;
|
||||
@Config(category = Configuration.CATEGORY_GENERAL, key = "Levitator Acceleration")
|
||||
public static double LEVITATOR_ACCELERATION = .02;
|
||||
@Config(category = Configuration.CATEGORY_GENERAL, key = "Enabled Resource Generator")
|
||||
public static boolean RESOURCE_GENERATOR = true;
|
||||
|
||||
public static void setModMetadata(ModMetadata metadata, String id, String name)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue