Only show the mojang api error message for mojang-related api errors

This commit is contained in:
Sollace 2018-09-23 23:12:22 +02:00
parent 227b571e95
commit 8d49b88e86

View file

@ -9,6 +9,7 @@ import net.minecraft.util.ResourceLocation;
import com.google.common.base.Throwables;
import com.google.common.collect.Iterables;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.exceptions.AuthenticationException;
import com.mojang.authlib.exceptions.AuthenticationUnavailableException;
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
@ -216,8 +217,10 @@ public class SkinUploader implements Closeable {
if (throwable instanceof AuthenticationUnavailableException) {
offline = true;
} else {
} else if (throwable instanceof AuthenticationException) {
throttlingNeck = true;
} else {
setError(throwable.toString());
}
}
return a;