mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 08:27:03 +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) {
|
public void addComments(Builder builder, String... comment) {
|
||||||
if (comment.length > 0) {
|
if (comment.length > 0) {
|
||||||
String[] comments = new String[comment.length + 1];
|
String[] comments = new String[comment.length + 1];
|
||||||
comments[0] = "";
|
comments[0] = " ";
|
||||||
System.arraycopy(comment, 0, comments, 1, comment.length);
|
System.arraycopy(comment, 0, comments, 1, comment.length);
|
||||||
builder.comment(comments);
|
builder.comment(comments);
|
||||||
} else
|
} else
|
||||||
builder.comment("");
|
builder.comment(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void register(ForgeConfigSpec.Builder builder) {
|
public void register(ForgeConfigSpec.Builder builder) {
|
||||||
|
|
Loading…
Reference in a new issue