mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-18 07:53:07 +01:00
No Comment
- Added "." to empty comments in config files (-> Fixes forge startup crash on 1.19)
This commit is contained in:
parent
e74bdaa262
commit
c5b144b60c
2 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue