// Path: src/main/java/com/team/kalstuff/KalStuff.java
// @Mod(modid = KalStuff.MODID,
// 	 name = KalStuff.NAME,
// 	 version = KalStuff.VERSION,
// 	 acceptedMinecraftVersions = "[1.12.2]",
// 	 useMetadata = true,
// 	 guiFactory = "com.team.kalstuff.config.KalStuffGuiFactory")
// public class KalStuff
// {
// 	public static final String MODID = "kalstuff";
// 	public static final String NAME = "KalStuff";
// 	public static final String VERSION = "1.0.0";
// 
// 	@SidedProxy(clientSide = "com.team.kalstuff.proxy.ClientProxy",
// 			serverSide = "com.team.kalstuff.proxy.ServerProxy")
// 	public static CommonProxy proxy;
// 
// 	// The instance of the mod that Forge uses.
// 	@Mod.Instance
// 	public static KalStuff instance;
// 
// 	public static Logger logger;
// 
// 	public static Configuration config;
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent e)
// 	{
// 		logger = e.getModLog();
// 		Config.initialize(e, e.getSuggestedConfigurationFile());
// 		config = Config.getConfig();
// 		proxy.preInit(e);
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent e)
// 	{
// 		proxy.init(e);
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent e)
// 	{
// 		if (config.hasChanged())
// 		{
// 			config.save();
// 		}
// 		proxy.postInit(e);
// 	}
// }


import java.io.File;
import java.util.List;
import com.team.kalstuff.KalStuff;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.ConfigElement;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.client.config.IConfigElement;
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
package com.team.kalstuff.config;




public class Config
{
	public static File configurationFile;
	public static Configuration config;

	public static final String CATEGORY_GENERAL = "General";

	public static int cottageRarity = 512;
	public static boolean bridgeTNT = false;

	public static final void initialize(FMLPreInitializationEvent e, File file)
	{
// Path: src/main/java/com/team/kalstuff/KalStuff.java
// @Mod(modid = KalStuff.MODID,
// 	 name = KalStuff.NAME,
// 	 version = KalStuff.VERSION,
// 	 acceptedMinecraftVersions = "[1.12.2]",
// 	 useMetadata = true,
// 	 guiFactory = "com.team.kalstuff.config.KalStuffGuiFactory")
// public class KalStuff
// {
// 	public static final String MODID = "kalstuff";
// 	public static final String NAME = "KalStuff";
// 	public static final String VERSION = "1.0.0";
// 
// 	@SidedProxy(clientSide = "com.team.kalstuff.proxy.ClientProxy",
// 			serverSide = "com.team.kalstuff.proxy.ServerProxy")
// 	public static CommonProxy proxy;
// 
// 	// The instance of the mod that Forge uses.
// 	@Mod.Instance
// 	public static KalStuff instance;
// 
// 	public static Logger logger;
// 
// 	public static Configuration config;
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent e)
// 	{
// 		logger = e.getModLog();
// 		Config.initialize(e, e.getSuggestedConfigurationFile());
// 		config = Config.getConfig();
// 		proxy.preInit(e);
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent e)
// 	{
// 		proxy.init(e);
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent e)
// 	{
// 		if (config.hasChanged())
// 		{
// 			config.save();
// 		}
// 		proxy.postInit(e);
// 	}
// }


// Path: src/main/java/com/team/kalstuff/config/Config.java
import java.io.File;
import java.util.List;
import com.team.kalstuff.KalStuff;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.ConfigElement;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.client.config.IConfigElement;
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

package com.team.kalstuff.config;




public class Config
{
	public static File configurationFile;
	public static Configuration config;

	public static final String CATEGORY_GENERAL = "General";

	public static int cottageRarity = 512;
	public static boolean bridgeTNT = false;

	public static final void initialize(FMLPreInitializationEvent e, File file)
	{
		config = new Configuration(file, KalStuff.VERSION, true);