mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-13 05:54:17 +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
@ -22,7 +22,7 @@ public class CStress extends ConfigBase implements IStressValueProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void registerAll(Builder builder) {
|
protected void registerAll(Builder builder) {
|
||||||
builder.comment("", Comments.su, Comments.impact)
|
builder.comment(".", Comments.su, Comments.impact)
|
||||||
.push("impact");
|
.push("impact");
|
||||||
BlockStressDefaults.DEFAULT_IMPACTS.forEach((r, i) -> {
|
BlockStressDefaults.DEFAULT_IMPACTS.forEach((r, i) -> {
|
||||||
if (r.getNamespace()
|
if (r.getNamespace()
|
||||||
@ -31,7 +31,7 @@ public class CStress extends ConfigBase implements IStressValueProvider {
|
|||||||
});
|
});
|
||||||
builder.pop();
|
builder.pop();
|
||||||
|
|
||||||
builder.comment("", Comments.su, Comments.capacity)
|
builder.comment(".", Comments.su, Comments.capacity)
|
||||||
.push("capacity");
|
.push("capacity");
|
||||||
BlockStressDefaults.DEFAULT_CAPACITIES.forEach((r, i) -> {
|
BlockStressDefaults.DEFAULT_CAPACITIES.forEach((r, i) -> {
|
||||||
if (r.getNamespace()
|
if (r.getNamespace()
|
||||||
|
@ -110,11 +110,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 New Issue
Block a user