No Comment

- Added "." to empty comments in config files (-> Fixes forge startup crash on 1.19)
This commit is contained in:
simibubi 2022-09-28 22:28:29 +02:00
parent e74bdaa262
commit c5b144b60c
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ public class CStress extends ConfigBase implements IStressValueProvider {
@Override
protected void registerAll(Builder builder) {
builder.comment("", Comments.su, Comments.impact)
builder.comment(".", Comments.su, Comments.impact)
.push("impact");
BlockStressDefaults.DEFAULT_IMPACTS.forEach((r, i) -> {
if (r.getNamespace()
@ -31,7 +31,7 @@ public class CStress extends ConfigBase implements IStressValueProvider {
});
builder.pop();
builder.comment("", Comments.su, Comments.capacity)
builder.comment(".", Comments.su, Comments.capacity)
.push("capacity");
BlockStressDefaults.DEFAULT_CAPACITIES.forEach((r, i) -> {
if (r.getNamespace()

View File

@ -110,11 +110,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) {