检查名字逻辑修改

master_haizei01
grimm 2024-07-22 14:42:02 +08:00
parent cdac0990ee
commit da2047437d
1 changed files with 1 additions and 1 deletions

View File

@ -150,6 +150,7 @@ public class PlayerLogic {
int i = 0;
boolean result = true;
do {
i++;
pre = surnameMap.get(MathUtils.random(1, surnameMap.size()));
post = nameMap.get(MathUtils.random(1, nameMap.size()));
name = pre + post;
@ -159,7 +160,6 @@ public class PlayerLogic {
LOGGER.error("随机名称失败,包含有违禁字符,最后一次名字:"+name);
e.printStackTrace();
}
i++;
}
while (result && i<max);
if (result){