Allow spaces in world names

This commit is contained in:
Luck 2017-12-29 00:39:54 +00:00
parent 3413adf16f
commit aaa50cacda
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -64,6 +64,6 @@ public class DataConstraints {
public static final Predicate<String> SERVER_NAME_TEST = s -> s.length() > 0 && s.length() <= MAX_SERVER_LENGTH && !s.contains(" "); public static final Predicate<String> SERVER_NAME_TEST = s -> s.length() > 0 && s.length() <= MAX_SERVER_LENGTH && !s.contains(" ");
public static final Predicate<String> WORLD_NAME_TEST = s -> s.length() > 0 && s.length() <= MAX_WORLD_LENGTH && !s.contains(" "); public static final Predicate<String> WORLD_NAME_TEST = s -> s.length() > 0 && s.length() <= MAX_WORLD_LENGTH;
} }