diff --git a/common/net/minecraftforge/common/ConfigCategory.java b/common/net/minecraftforge/common/ConfigCategory.java index 25822099a..0e4ab437c 100644 --- a/common/net/minecraftforge/common/ConfigCategory.java +++ b/common/net/minecraftforge/common/ConfigCategory.java @@ -150,8 +150,8 @@ public class ConfigCategory implements Map if (prop.isList()) { out.write(String.format(pad + "%s:%s <" + NEW_LINE, prop.getType().getID(), propName)); - pad = getIndent(indent + 2) -; + pad = getIndent(indent + 2); + for (String line : prop.valueList) { out.write(pad + line + NEW_LINE); @@ -159,6 +159,10 @@ public class ConfigCategory implements Map out.write(getIndent(indent + 1) + " >" + NEW_LINE); } + else if (prop.getType() == null) + { + out.write(String.format(pad + "%s=%s" + NEW_LINE, propName, prop.value)); + } else { out.write(String.format(pad + "%s:%s=%s" + NEW_LINE, prop.getType().getID(), propName, prop.value));