CapeManager bug fix

This commit is contained in:
noil 2023-05-08 22:47:35 -04:00
parent c3941045d8
commit 4cb74a14ae
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public final class CapeManager {
final BufferedReader reader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
reader.lines().forEachOrdered(line -> {
final String[] split = line.split(";");
if (line.toLowerCase().endsWith("png")) {
if (split[1].toLowerCase().endsWith("png")) {
this.getCapeUserList().add(new CapeUser(split[0], split[1]));
}
});