File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
common/src/main/java/org/embeddedt/modernfix/core/config Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -381,8 +381,19 @@ public void save() throws IOException {
381381 .sorted ()
382382 .collect (Collectors .toList ());
383383 for (String line : keys ) {
384- if (!line .equals ("mixin.core" ))
384+ if (!line .equals ("mixin.core" )) {
385+ Option option = this .options .get (line );
386+ String extraContext = "" ;
387+ if (option != null ) {
388+ if (option .isModDefined ())
389+ extraContext = " # (overridden for mod compat)" ;
390+ else {
391+ boolean defaultEnabled = DEFAULT_SETTING_OVERRIDES .getOrDefault (line , true );
392+ extraContext = " # (default: " + defaultEnabled + ")" ;
393+ }
394+ }
385395 writer .write ("# " + line + "\n " );
396+ }
386397 }
387398
388399 for (String key : keys ) {
You can’t perform that action at this time.
0 commit comments