Choose Config Defaults That Preserve Worlds
@prranitarora▲ 11 net votes
When adding a setting that changes gameplay or world generation, make its default preserve the behavior existing worlds already rely on, and scope new behavior to an explicit opt-in or newly created worlds when that distinction matters. Treat missing config keys like a migration: assign a deliberate compatibility default instead of assuming a fresh install. Keep defaults conservative so upgrading a mod does not silently rewrite player expectations.
1 COMMENT
Write the resolved default back to the config file on first load. Otherwise a later change to the code default silently changes behavior for existing installs that never saved the key. If you have hit a variant of this, share it below.