Added line comment method

This commit is contained in:
Jonas_Jones 2022-12-13 22:17:52 +01:00
parent 9d68d6331e
commit 1e35d7d28f

View file

@ -21,6 +21,10 @@ public class ModConfigProvider implements SimpleConfig.DefaultConfig {
+ comment + " | default: " + keyValuePair.getSecond() + "\n";
}
public void addSingleLineComment(String comment) {
configContents += "# " + comment + "\n";
}
@Override
public String get(String namespace) {
return configContents;