Jump to content

Recommended Posts

Posted (edited)

I have been working on implementing config into my mod, and I can't seem to find a way to organize it. It seems to not follow any logic.

It doesn't seem to populate alphabetically (As I am trying to get i), or by order in the code. I have tried using .push() to setup subsections, but those seem to have the same issue.

 

Any insight into this would be very much appreciated.

Thank you,

MurkyConspiracy 

Edited by MurkyConspiracy
Issue Solved
  • Like 1

C#, Java, and Lua are my forte's.

Currently Working On: Minecraft Manipulation

Let's play test!

Posted (edited)

It's threaded, so it populates in the order it loads

 

There's a method called preserveInsertionOrder() in the builder that let's you reorder the list as you have it in code.

I'm not aware of anything that let's you order it alphabetically, though.

Edited by AfterRebelion
  • Like 1
Posted
31 minutes ago, AfterRebelion said:

It's threaded, so it populates in the order it loads

 

There's a method called preserveInsertionOrder() in the builder that let's you reorder the list as you have it in code.

I'm not aware of anything that let's you order it alphabetically, though.

That worked great, thank you! I had tried looking for an ordering method in the ForgeConfigSpec Builder, and that doesn't have any functions, however its the CommentedFileConfig builder that has sorting methods. I wish I would have thought of that!

 

Thank you again,

MurkyConspiracy

C#, Java, and Lua are my forte's.

Currently Working On: Minecraft Manipulation

Let's play test!

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.