mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 16:06:48 +01:00
Fix config comment dividers
New Forge versions replace empty comments with "No comment", so the divider comment was changed from "" to " ".
This commit is contained in:
parent
23eb51abd2
commit
ce332bfe40
1 changed files with 2 additions and 2 deletions
|
@ -106,11 +106,11 @@ public abstract class ConfigBase {
|
|||
public void addComments(Builder builder, String... comment) {
|
||||
if (comment.length > 0) {
|
||||
String[] comments = new String[comment.length + 1];
|
||||
comments[0] = "";
|
||||
comments[0] = " ";
|
||||
System.arraycopy(comment, 0, comments, 1, comment.length);
|
||||
builder.comment(comments);
|
||||
} else
|
||||
builder.comment("");
|
||||
builder.comment(" ");
|
||||
}
|
||||
|
||||
public void register(ForgeConfigSpec.Builder builder) {
|
||||
|
|
Loading…
Reference in a new issue