From ce332bfe40a1d3e1f79e9ea066ffe30a76713845 Mon Sep 17 00:00:00 2001 From: PepperBell <44146161+PepperCode1@users.noreply.github.com> Date: Thu, 24 Jun 2021 14:28:40 -0700 Subject: [PATCH] Fix config comment dividers New Forge versions replace empty comments with "No comment", so the divider comment was changed from "" to " ". --- .../com/simibubi/create/foundation/config/ConfigBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/config/ConfigBase.java b/src/main/java/com/simibubi/create/foundation/config/ConfigBase.java index 0dadcfc41..5b8565da3 100644 --- a/src/main/java/com/simibubi/create/foundation/config/ConfigBase.java +++ b/src/main/java/com/simibubi/create/foundation/config/ConfigBase.java @@ -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) {