Posted February 2, 20205 yr 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 February 2, 20205 yr by MurkyConspiracy Issue Solved C#, Java, and Lua are my forte's. Currently Working On: Minecraft Manipulation Let's play test!
February 2, 20205 yr 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 February 2, 20205 yr by AfterRebelion
February 2, 20205 yr Author 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.