fix[Tools/hasOnlineProfile]: Faulty logic fix

This commit is contained in:
alexytomi 2025-06-20 23:35:27 +08:00
parent 1e652fc3bc
commit dae621043c

View File

@ -1455,7 +1455,7 @@ public final class Tools {
}
public static boolean hasOnlineProfile(){
for (MinecraftAccount accountToCheck : getAllProfiles()) {
if (!accountToCheck.isLocal() || !accountToCheck.isDemo()) {
if (!accountToCheck.isLocal() && !accountToCheck.isDemo()) {
return true;
}
}