Merge pull request #84 from Ghostlyr/patch-1

Регистронезависимый белый список
This commit is contained in:
Gravit 2018-11-28 13:38:37 +07:00 committed by GitHub
commit ed7a09d223
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,7 +279,7 @@ public boolean isUpdateFastCheck() {
@LauncherAPI @LauncherAPI
public boolean isWhitelistContains(String username) { public boolean isWhitelistContains(String username) {
if (!useWhitelist.getValue()) return true; if (!useWhitelist.getValue()) return true;
return whitelist.stream(StringConfigEntry.class).anyMatch(e -> e.equals(username)); return whitelist.stream(StringConfigEntry.class).anyMatch(e -> e.equalsIgnoreCase(username));
} }
@LauncherAPI @LauncherAPI