mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Only show the mojang api error message for mojang-related api errors
This commit is contained in:
parent
227b571e95
commit
8d49b88e86
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue