mirror of
https://github.com/JonasunderscoreJones/BetterSimpleConfig.git
synced 2025-10-22 20:39:19 +02:00
Added line comment method
This commit is contained in:
parent
9d68d6331e
commit
1e35d7d28f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue