Регистронезависимый белый список

This commit is contained in:
Ghostlyr 2018-11-27 22:03:19 +06:00 committed by GitHub
parent e42a88ded9
commit a1d7fdb2d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,7 +279,7 @@ public boolean isUpdateFastCheck() {
@LauncherAPI
public boolean isWhitelistContains(String username) {
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