diff --git a/src/main/java/com/simibubi/create/foundation/config/ui/SubMenuConfigScreen.java b/src/main/java/com/simibubi/create/foundation/config/ui/SubMenuConfigScreen.java index fac3d6fa5..53b12052a 100644 --- a/src/main/java/com/simibubi/create/foundation/config/ui/SubMenuConfigScreen.java +++ b/src/main/java/com/simibubi/create/foundation/config/ui/SubMenuConfigScreen.java @@ -150,7 +150,12 @@ public class SubMenuConfigScreen extends ConfigScreen { } else if (obj instanceof ForgeConfigSpec.ConfigValue) { ForgeConfigSpec.ConfigValue configValue = (ForgeConfigSpec.ConfigValue) obj; ForgeConfigSpec.ValueSpec valueSpec = spec.getRaw((List) configValue.getPath()); - List comments = new ArrayList<>(Arrays.asList(valueSpec.getComment().split("\n"))); + + List comments = new ArrayList<>(); + + if (valueSpec.getComment() != null) + comments.addAll(Arrays.asList(valueSpec.getComment().split("\n"))); + Pair> metadata = ConfigHelper.readMetadataFromComment(comments); ConfigHelper.setValue(String.join(".", configValue.getPath()), configValue, valueSpec.getDefault(), metadata.getSecond());