Jump to content

Error on create a config file


lucasdidur

Recommended Posts

Hello,

 

I'm getting some problems when I tried to make a config file.

 

Always when the game starts, he overriden the current save file, and rename to mod_***.cfg.bak and create a new file with defaults config.

 

But I dont know why this is happening. I use this code to load my config:

 

public static void configurationProperties()
{
Configuration config = new Configuration(new File(new File(mc.getMinecraftDir(), "config"), "mod_***.cfg"));

config.load();
currVer = config.getOrCreateProperty("mod.versao", config.CATEGORY_GENERAL, defautlVer).value;	
config.save();
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.