mirror of
https://github.com/MinecraftForge/MinecraftForge
synced 2026-08-22 04:26:10 -04: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 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue