mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
Allow white space in the property name.
This commit is contained in:
1 parent
e4a9cf4993
commit
e31b6c0be4
1 file changed
+1
-1
@@ -97,7 +97,7 @@ public class Property
|
||||
{
|
||||
for (char c : name.toCharArray())
|
||||
{
|
||||
if (!Character.isLetterOrDigit(c) && Configuration.ALLOWED_CHARS.indexOf(c) == -1)
|
||||
if (!Character.isLetterOrDigit(c) && Configuration.ALLOWED_CHARS.indexOf(c) == -1 && !Character.isWhitespace(c))
|
||||
{
|
||||
throw new IllegalArgumentException("Invalid property name: \"" + name + "\"");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user