package ljfa.noitemrot;

import java.io.File;

import net.minecraftforge.common.config.Configuration;

public class Config {
    public static Configuration conf;
    
    public static final String CATEGORY_GENERAL = "general";
    
    public static boolean 

    public static void loadConfig(File file) {
        if(conf == null)
            conf = new Configuration(file);
        
        conf.load();
        loadValues();
    }
    
    public static void loadValues() {
        
        //----------------
        if(conf.hasChanged())
            conf.save();
    }
}

@@ -253,16 +253,117 @@
 boolean 
+disableRotation;%0A    public static boolean disableBobbing;%0A    public static boolean rotateBackwards;
 %0A%0A    pu
@@ -573,32 +573,444 @@
 ues() %7B%0A        
+disableRotation = conf.get(CATEGORY_GENERAL, %22disableRotation%22, true, %22Disables items rotating around their axis%22).getBoolean();%0A        disableBobbing = conf.get(CATEGORY_GENERAL, %22disableBobbing%22, false, %22Disables items bobbing up and down%22).getBoolean();%0A        rotateBackwards = conf.get(CATEGORY_GENERAL, %22rotateBackwards%22, false, %22Makes items rotate clockwise rather than counter-clockwise%22).getBoolean();
 %0A        //-----

Create config options