mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Remove verifyUsername
This commit is contained in:
parent
b496d60b40
commit
589477888f
5 changed files with 4 additions and 6 deletions
|
@ -15,7 +15,7 @@ public final class PlayerProfile {
|
|||
|
||||
public PlayerProfile(UUID uuid, String username, Texture skin, Texture cloak) {
|
||||
this.uuid = Objects.requireNonNull(uuid, "uuid");
|
||||
this.username = VerifyHelper.verifyUsername(username);
|
||||
this.username = username;
|
||||
this.skin = skin;
|
||||
this.cloak = cloak;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ public final class CheckServerRequest extends Request<CheckServerRequestEvent> i
|
|||
|
||||
|
||||
public CheckServerRequest(String username, String serverID) {
|
||||
this.username = VerifyHelper.verifyUsername(username);
|
||||
this.username = username;
|
||||
this.serverID = VerifyHelper.verifyServerID(serverID);
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ public final class JoinServerRequest extends Request<JoinServerRequestEvent> imp
|
|||
|
||||
|
||||
public JoinServerRequest(String username, String accessToken, String serverID) {
|
||||
this.username = VerifyHelper.verifyUsername(username);
|
||||
this.username = username;
|
||||
this.accessToken = accessToken;
|
||||
this.serverID = VerifyHelper.verifyServerID(serverID);
|
||||
}
|
||||
|
|
|
@ -21,8 +21,6 @@ public BatchProfileByUsernameRequest(String... usernames) throws IOException {
|
|||
this.list[i].username = usernames[i];
|
||||
}
|
||||
IOHelper.verifyLength(usernames.length, IOHelper.MAX_BATCH_SIZE);
|
||||
for (String username : usernames)
|
||||
VerifyHelper.verifyUsername(username);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,7 +12,7 @@ public final class ProfileByUsernameRequest extends Request<ProfileByUsernameReq
|
|||
|
||||
|
||||
public ProfileByUsernameRequest(String username) {
|
||||
this.username = VerifyHelper.verifyUsername(username);
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue