mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-11 18:57:30 +03:00
Фикс (переменная result пустая была)
This commit is contained in:
parent
8ff2aea83f
commit
f5f85a861a
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ public UUID usernameToUUID(String username) throws IOException {
|
||||||
conn.setRequestMethod("GET");
|
conn.setRequestMethod("GET");
|
||||||
rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
|
rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
|
||||||
while ((line = rd.readLine()) != null) {
|
while ((line = rd.readLine()) != null) {
|
||||||
// Пусто
|
result += line;
|
||||||
}
|
}
|
||||||
rd.close();
|
rd.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -89,7 +89,7 @@ public String uuidToUsername(UUID uuid) throws IOException {
|
||||||
conn.setRequestMethod("GET");
|
conn.setRequestMethod("GET");
|
||||||
rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
|
rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
|
||||||
while ((line = rd.readLine()) != null) {
|
while ((line = rd.readLine()) != null) {
|
||||||
// Пусто
|
result += line;
|
||||||
}
|
}
|
||||||
rd.close();
|
rd.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in a new issue