Jump to content

Recommended Posts

Posted (edited)

Heyho, 

 

I know this might sound stupid but I would need to change some of my config values from other locations than the default config gui.
My research has shown that I need the property, but with the new annotation based configs I am unable to find a way to get them (at least without reflections).

Is there maybe a way to change these values without reflections?

 

Thanks in advance.

Edited by JTK222
Posted

Change the value of the field and then call ConfigManager.sync to synchronise the fields and the Configuration properties.

 

This will iterate through every field and use ConfigManager.shouldReadFromVar to decide whether the property should be set to the field's value (true) or the field should be set to the property's value (false).

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

I am feeling so stupid... I tried that but as it looks I had a typo in the modid xD

Even though big thanks ^^ I would probably be searching again for days without this :P

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.

Announcements



×
×
  • Create New...

Important Information

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