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:
PepperBell 2021-06-24 14:28:40 -07:00
parent 23eb51abd2
commit ce332bfe40

View file

@ -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) {