/*
 * This file is part of GoodTime-Industrial, licensed under MIT License (MIT).
 *
 * Copyright (c) 2015 Minecraft-GoodTime <http://github.com/Minecraft-GoodTime>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package com.mcgoodtime.gti.common.core.config;

import com.mcgoodtime.gti.common.core.Gti;

import cpw.mods.fml.common.FMLCommonHandler;
import net.minecraftforge.common.config.Configuration;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.io.File;

/**
 * Config loader in GoodTime-Industrial.
 *
 * @author liach, SuHao
 */
public class GtiConfig {
    public static Logger gtiLogger = LogManager.getLogger(Gti.MOD_ID);
    public static Configuration gtiConfig;
    public static File configFile;

    public static void init() {
        configFile = new File("config", Gti.MOD_NAME + ".cfg");

        // if configFile doesn't exists
        if (!configFile.exists()) {

        }

        gtiConfig = new Configuration(configFile);
        if (!configFile.exists()) {
            gtiLogger.log(Level.ERROR, "Cannot create Gti config file");
            gtiLogger.log(Level.INFO, "Skipping config load");
        } else {
            gtiConfig.load();
        }
        gtiLogger.log(Level.INFO, "Gti config loaded");
    }
}

@@ -1956,97 +1956,8 @@
 %22);%0A
-%0A        // if configFile doesn't exists%0A        if (!configFile.exists()) %7B%0A%0A        %7D%0A%0A
     
@@ -2003,16 +2003,25 @@
 gFile);%0A
+        %0A
         

fix style 1