mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Merge pull request #1183 from bspkrs/master
fixed dupe quotes issue with category names that require quotes when save is called more than once
This commit is contained in:
commit
3b648d826f
1 file changed
+4
-2
@@ -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[] {});
|
||||
|
||||
|
||||
Reference in new issue
Block a user