I am attempting to make a list within cloth Config for default values, however, i can't find a way around these issues:
//this method overwrites previous configs
public List<String> list = Arrays.asList("default");
//this other method adds a new repeated instance of the default value every restart
public List<String> list = new ArrayList<>(Arrays.asList("minecraft:overworld"));
I am currently looking for possible solutions involving filtering out the repeated inputs but am unsure of how to do it.
how can I safely add a Default value to a list using shedaniel's Autoconfig?
EDIT: at this point, i'm just using this post to share what i learn regarding config validations of lists in Cloth config... Both topics have almost no documentation on and are extremely useful configuration tools. If you are here to learn, i hope this post finds you well ;)
NOTE: EVERY CODE LINE ON THIS POST USES THE OFFICIAL MOJANG MAPPINGS