public void setModName(String modName) {
        this.modName = modName;
        
        if (modName.length() != 0) {
            usingMod = true;
            modDirName = mainDirName + modPrefix + modName + "/";
            
            if (modFile) {
                GenericObject mod = EUGFileIO.load(mainDirName + modPrefix + modName + ".mod");
                if (mod == null) {
                    modFile = false;
                    extended = null;
                    replaced = null;
                } else {
                    extended = mod.getStrings("extend");
                    replaced = mod.getStrings("replace");
                }
            }
        } else {
            usingMod = false;
            modDirName = mainDirName;
        }
    }