mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Merge pull request #1184 from bspkrs/patch-2
Fix config category names being quoted to many times.
This commit is contained in:
commit
e08c63b57b
1 file changed
+5
-3
@@ -271,12 +271,14 @@ public class ConfigCategory implements Map<String, Property>
|
||||
write(out, pad0, COMMENT_SEPARATOR, NEW_LINE);
|
||||
}
|
||||
|
||||
String displayName = name;
|
||||
|
||||
if (!allowedProperties.matchesAllOf(name))
|
||||
{
|
||||
name = '"' + name + '"';
|
||||
displayName = '"' + name + '"';
|
||||
}
|
||||
|
||||
write(out, pad0, name, " {");
|
||||
write(out, pad0, displayName, " {");
|
||||
|
||||
Property[] props = getOrderedValues().toArray(new Property[] {});
|
||||
|
||||
@@ -421,4 +423,4 @@ public class ConfigCategory implements Map<String, Property>
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user